If unset, the default locations above will be used. ![]() If the 'MOCHA_INIT_SCRIPT' environment variable points to a file, that file will be used, if it points to a directory, it will look specifically for init.py in that directory. You can also set the environment variable 'MOCHA_INIT_SCRIPT' to control where the path of the init.py initialization script resides. Linux: '~/.config/Imagineer Systems Ltd/Scripts/init.py'.Windows: 'C:\Users\AppData\Roaming\Imagineer Systems Ltd\Scripts\init.py'.OS X: '~/Library/Application Support/Imagineer Systems Ltd/Scripts/init.py'.The mocha init.py script is generated per system in the following default locations: The default init.py path is the Imaginer Systems Scripts directory. We generate a blank init.py script on the first run of mocha for you to add functionality on startup. ![]() To load scripts into Mocha as tools or menu items, you need to import and initalise them via init.py You can run them via the Script Editor or call them using the init.py Scriptsįor more expansive details on using the Mocha Pro Python API, go to the Mocha Python Documentation Page Using the Python Scripts with init.py ![]() These scripts are examples of how to use the Mocha Pro Python API.
0 Comments
Leave a Reply. |