aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/ConfigFile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/ConfigFile.py b/share/ConfigFile.py
index deca335..1ad0cee 100644
--- a/share/ConfigFile.py
+++ b/share/ConfigFile.py
@@ -437,8 +437,7 @@ def add_config_assoc(regex, action):
return all_files.add_config_assoc(regex, action)
def mkdir_p(path):
- s = os.stat(path)
- if not s:
+ if not os.path.exists(path):
os.makedirs(os.path.dirname(path))
# ConfigFile.py ends here