aboutsummaryrefslogtreecommitdiffstats
path: root/share/ConfigFile.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/ConfigFile.py')
-rw-r--r--share/ConfigFile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/ConfigFile.py b/share/ConfigFile.py
index d50e78f..349e52f 100644
--- a/share/ConfigFile.py
+++ b/share/ConfigFile.py
@@ -141,7 +141,7 @@ class ConfigFile:
log(_('deleted %s') % (self.path,))
elif self.is_modified:
content = string.join(self.lines, "\n")
- mkdir_p(self.path)
+ mkdir_p(os.path.dirname(self.path))
file = open(self.path, 'w')
file.write(content)
file.close()
@@ -438,6 +438,6 @@ def add_config_assoc(regex, action):
def mkdir_p(path):
if not os.path.exists(path):
- os.makedirs(os.path.dirname(path))
+ os.makedirs(path)
# ConfigFile.py ends here