-
Notifications
You must be signed in to change notification settings - Fork 4
Voxel Globe Plugins
drewgilliam edited this page Jan 12, 2017
·
3 revisions
- Add your app to
./external/voxel_globe_plugins, and don't forget an__init__.pyfile. - Run
git submodule add external/voxel_globe_plugins/{app_name}to add the submodule git config -f .gitmodules external/voxel_globe_plugins/{app_name}.update none
The update none is important, or else it will not be an optional submodule.
Simply run
./plugins enable
and follow the prompts
Simply run
./plugins disable
and follow the prompts
All plugins exist in ./external/voxel_globe_plugins. These directories should mimic current Voxel Globe app directories. While Voxel Globe apps can reference these plugins, they should always be able to be imported without failure. For example:
try:
import voxel_globe_plugin.my_awesome_plugin
except ImportError:
pass