python_devnotes
This is an old revision of the document!
Python Implementation Notes
This section documents all notes from the WHATSNEW.TXT file that relates to the implementation of Python in Mystic BBS. The ability to incorporate and use Python code with Mystic BBS began with the arrival of Mystic 1.12 Alpha 1
+ PYTHON is here! New menu command 'GY' will execute a Python 2.7 syntax script. By default Mystic looks in the script directory for .MPY files, using the same logic as MPX. If you supply a file with no extention, Mystic will add .mpy onto it. If you do not supply a path, then Mystic will look in the current theme's script directory, and then the default script directory if fallback is enabled. Example: Command: GY Data: testpython
The above executes testpython.mpy from the Scripts directory Example: Command: GY Data: c:\mystic\derp\herpderp
The above executes herderp.mpy from the c:\mystic\derp directory, or if it is not found and fallback is enabled for the current theme, Mystic will look in the default scripts directory.
python_devnotes.1487234501.txt.gz · Last modified: by avon