short bug fix

This commit is contained in:
ingvar1995
2016-06-08 18:35:40 +03:00
parent 298dba4d6c
commit 01854ff2d0
3 changed files with 12 additions and 6 deletions

View File

@@ -29,6 +29,9 @@ class PluginLoader(util.Singleton):
Load all plugins in plugins folder
"""
path = util.curr_directory() + '/plugins/'
if not os.path.exists(path):
util.log('Plugin dir not found')
return
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
for fl in files:
if fl in ('plugin_super_class.py', '__init__.py') or not fl.endswith('.py'):