Special scripts

startup.py

If the file startup.py exists in the current CityEngine workspace, it will be imported as a module to the CityEngine scripting module. The startup module is executed automatically during CityEngine startup, when a new Python console is opened and when a script is run from the Python editor. Typical use cases for the startup script include adding your scripting directory to the system path, or loading your custom modules to the scripting environment.

Make sure startup.py is well formed and does not contain errors. An incorrect startup.py can prevent the main scripting module from being parsed, and can prevent correct execution of the scripting interface.

scripting.py

If the file scripting.py exists in the current CityEngine workspace root, tts content will be appended to the end of the main CityEngine scripting module. scripting.py code executed automatically during CityEngine startup, when a new Python console is opened and when a script is run from the Python editor. CityEngine needs to be restarted in order to load changes in the file scripting.py.

Make sure scripting.py is well formed and does not contain errors. An incorrect scripting.py can prevent the main scripting module from being parsed, and can prevent correct execution of the scripting interface.


See also

 

Copyright ©2008-2017 Esri R&D Center Zurich. All rights reserved.