Merge pull request #1717 from rllola/pyinstaller-browser-fix

Make it compatible with pyinstaller for browser build
This commit is contained in:
ZeroNet 2018-10-17 10:54:18 +02:00 committed by GitHub
commit 40ab9d9366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ class PluginManager:
self.plugin_names = [] # Loaded plugin names self.plugin_names = [] # Loaded plugin names
self.after_load = [] # Execute functions after loaded plugins self.after_load = [] # Execute functions after loaded plugins
sys.path.append(self.plugin_path) sys.path.append(os.path.join(os.getcwd(), self.plugin_path))
self.migratePlugins() self.migratePlugins()
if config.debug: # Auto reload Plugins on file change if config.debug: # Auto reload Plugins on file change