From 59f72bfc5ed721c80c821bd0ca1bc8daf0d49880 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 9 Nov 2014 03:12:41 +0100 Subject: Code cosmetics --- module/plugins/PluginManager.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'module/plugins/PluginManager.py') 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() -- cgit v1.2.3