- open(directory_category + "/__init__.py", "a").close()
- for x in os.listdir(directory_category):
- path = directory_category + "/" + x
- if os.path.isdir(path):
- if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.py"):
+ for pluginname in os_listdir(directory_category):
+ path = directory_category + "/" + pluginname
+ if os_path.isdir(path):
+ if fileExists(path + "/plugin.pyc") or fileExists(path + "/plugin.pyo") or fileExists(path + "/plugin.py"):