summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r--src/lib/Server/Plugin.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index ee7ae7a53..2e4974a84 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -73,20 +73,10 @@ class Plugin(object):
if (flag is None) and self.debug_flag or flag:
self.logger.error(message)
- @staticmethod
- def make_path(path):
- p_comp = path.split('/')
- for i in range(2, len(p_comp) + 1):
- ppath = '/' + '/'.join(p_comp[1:i])
- try:
- os.stat(ppath)
- except:
- os.mkdir(ppath)
-
@classmethod
def init_repo(cls, repo):
path = "%s/%s" % (repo, cls.name)
- cls.make_path(path)
+ os.makedirs(path)
def shutdown(self):
self.running = False