You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grinch_ edited this page Sep 29, 2021
·
2 revisions
How to import modules?
These modules expose the functionality of the game to the python interpreter. Can be imported as normal python modules.
import cleo
from cleo import
import cleo as cl
Where to install third-party modules?
To add your own modules, you can place them inside the PyLoader/lib folder. Do not place them inside the PyLoader/libstd as it is reserved for first-party modules.
Install modules from pip (site-packages)
For this, you need a local installation of python-pip. From there go to the PyLoader/lib folder run the command,
pip install <package_name> -t .
Create custom modules
Creating python modules is pretty straightforward and requires no changes for PyLoader. Check here for examples. For creating advanced modules through C++ check the sample project here. More examples are here.