Browse Source

Make it compaticle with pyinstaller for browser build

rllola 5 years ago
parent
commit
93d6129732
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Plugin/PluginManager.py

+ 1 - 1
src/Plugin/PluginManager.py

@@ -19,7 +19,7 @@ class PluginManager:
         self.plugin_names = []  # Loaded plugin names
         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()
 
         if config.debug:  # Auto reload Plugins on file change