import_pycode#

andes.system.import_pycode(user_pycode_path=None)[source]#

Helper function to import generated pycode in the following priority:

  1. a user-provided path from CLI. Currently, this is only for specifying the path to store the generated pycode via andes prepare.

  2. ~/.andes/pycode. This is where pycode is stored by default.

  3. <andes_package_root>/pycode. One can store pycode in the ANDES package folder and ship a full package, which does not require code generation.