diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2016-03-02 18:20:24 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2016-03-02 18:20:24 -0800 |
| commit | e17f45d9ab2ca15bda473d8510d3f78d8c2323ef (patch) | |
| tree | 669466db021e192a35a331a98a01f3bfe8273027 /pluginloader.py | |
| parent | 1159eacbc62c2ab7c566be078c43c08bdfda8778 (diff) | |
ok now we are talking...got plugins to work
Diffstat (limited to 'pluginloader.py')
| -rw-r--r-- | pluginloader.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pluginloader.py b/pluginloader.py deleted file mode 100644 index 1f568d4..0000000 --- a/pluginloader.py +++ /dev/null @@ -1,19 +0,0 @@ -import imp -import os - -PluginFolder = "./photoblaster/modules_src" -MainModule = "__init__" - -def getPlugins(): - plugins = [] - possibleplugins = os.listdir(PluginFolder) - for i in possibleplugins: - location = os.path.join(PluginFolder, i) - if not os.path.isdir(location) or not MainModule + ".py" in os.listdir(location): - continue - info = imp.find_module(MainModule, [location]) - plugins.append({"name": i, "info": info}) - return plugins - -def loadPlugin(plugin): - return imp.load_module(MainModule, *plugin["info"]) |
