- MyPlugin/
python
class MyPlugin:
def __init__(self):
self.name = "MyPlugin"
def enable(self):
print("MyPlugin enabled.")
def disable(self):
print("MyPlugin disabled.")
[Plugin]
Name = MyPlugin
Description = A sample Panda3D plugin
Version = 1.0
Author = Your Name
bash
python -c "from distutils.core import setup; import py2exe"
echo "Building MyPlugin..."
python setup.py py2exe
echo "Build complete."
plugin-path $PROJECT_PATH/MyPlugin
python
from MyPlugin import MyPlugin
plugin = MyPlugin()
plugin.enable()