mirror of
https://github.com/frej/fast-export.git
synced 2025-11-01 00:45:47 +01:00
Make plugin loader look in directories relative to cwd
Make the plugin loader also look for plugins using a path relative to the current working directory.
This commit is contained in:
@@ -5,7 +5,7 @@ PluginFolder = os.path.join(os.path.dirname(os.path.realpath(__file__)),"..","pl
|
||||
MainModule = "__init__"
|
||||
|
||||
def get_plugin(name, plugin_path):
|
||||
search_dirs = [PluginFolder]
|
||||
search_dirs = [PluginFolder, '.']
|
||||
if plugin_path:
|
||||
search_dirs = [plugin_path] + search_dirs
|
||||
for dir in search_dirs:
|
||||
|
||||
Reference in New Issue
Block a user