summaryrefslogtreecommitdiffstats
path: root/module/plugins/PluginManager.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-09 03:12:41 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-09 03:12:41 +0100
commit59f72bfc5ed721c80c821bd0ca1bc8daf0d49880 (patch)
tree05d0159405f2059bc89b3a55eab8ee4a94871aac /module/plugins/PluginManager.py
parent[PluginManager] Fix parse method (diff)
downloadpyload-59f72bfc5ed721c80c821bd0ca1bc8daf0d49880.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/PluginManager.py')
-rw-r--r--module/plugins/PluginManager.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py
index 3085c87e3..43e9f9ad4 100644
--- a/module/plugins/PluginManager.py
+++ b/module/plugins/PluginManager.py
@@ -67,29 +67,29 @@ class PluginManager:
"""
plugins = {}
-
+
try:
try:
pfolder = save_join("userplugins", folder)
if not exists(pfolder):
makedirs(pfolder)
-
+
ifile = join(pfolder, "__init__.py")
if not exists(ifile):
f = open(ifile, "a")
f.close()
-
+
except IOError, e:
pfolder = join(pypath, "module", "plugins", folder)
-
+
except Exception, e:
self.logCritical(str(e))
return plugins
-
+
for f in listdir(pfolder):
if (isfile(join(pfolder, f)) and f.endswith(".py") or f.endswith("_25.pyc") or f.endswith(
"_26.pyc") or f.endswith("_27.pyc")) and not f.startswith("_"):
-
+
with open(join(pfolder, f)) as data:
content = data.read()