User Tools

Site Tools


python

This is an old revision of the document!


Embedded Python

About

Mystic BBS has an embedded Python engine which allows for an incredible amount of flexibility when it comes to creating modifications to BBS functionality, or even creating your own games.

Custom Python scripts can be executed by a menu command on any menu, and can also replace any prompt in a Theme's prompts file so that the script is executed instead of the prompt that normally we have been displayed.

Python scripts can also be executed by MPL scripts and even other Python scripts as well.

Installation and Requirements

Mystic requires that Python 2.7 is installed on your system if you wish to execute Python scripts. The presence of Python is detected automatically by Mystic, and initialized as needed. It is not in any way a dependency and Mystic will continue to operate normally without it. It is simply an optional extention to Mystic's capabilities.

Most Linux desktop distributions and Apple's OS X will come with Python 2.7 installed by default, and in many cases no installation will be required in order to use Python. In Windows, Python needs to be installed by downloading it from the Website: www.python.org

Note: If you are using the 32-bit version of Mystic (even if it is in a 64-bit operating system), then you need the 32-bit version of Python installed. If you are using the 64-bit version of Mystic then you need to have the 64-bit version of Python installed.

Environment Variables

In addition to the basic Python installation, some environment variables need to be set so that Mystic can find and import any 3rd party modules you'd like to use within your Python programs.

 Placeholder for environment information

Why Python 2.7

python.1459088588.txt.gz · Last modified: 2016/03/27 09:23 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki