Creating Python plugin
Prerequisites
Install Python 3.7.8 if you do not already have it installed.
Basic plugin
You can build your first plugin with a few simple steps:
- Download this boilerplate.
- Update the plugin.json with your plugin's identifier and name
- Add the plugin to your app.
That's it! Now you'll see your plugin under the "Plugins" tab.
Follow the "TODO" in "main.py" to configure your plugin
Debug your plugin with Eclipse
- Install Eclipse.
- Open your plugin project: File > Open Projects From File System and import your plugin.
- Configure Python interpreter:
- Select manual config
- Select Browse for python/pypy exe
Go to your Browzwear folder and select Python folder.
For example : %ProgramFiles%\Browzwear\VStitcher{YOUR-VSTITCHER-VERSION}\Python - Select Ok
- Select manual config
- Add your plugin to VStitcher.
- At the beginning of the init function (BwApiPluginInit):
- Add the following line:
- start writing pydev and choose the settrace() option as follow:
- Add the following line:
- As a result the following lines will be added:
- Add trace_only_current_thread=True as parameter to pydevd.settrace function:
- Open the Debug perspective: Click Window > Perspective > Open Perspective > Other ...
- Select the Debug perspective.
- Start pyDev server using this button: