aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2004-07-29 23:16:24 +0000
committerFrederic Lepied <flepied@mandriva.com>2004-07-29 23:16:24 +0000
commitb4c6317586a7293cf2013e56a8612bc9d27f3995 (patch)
tree5ad613d680d572eaf140e6554c5e9e1a618eaf07 /share
parent1141402db59a5e53b844652e3f2b25b398bc6c45 (diff)
downloadmsec-b4c6317586a7293cf2013e56a8612bc9d27f3995.tar
msec-b4c6317586a7293cf2013e56a8612bc9d27f3995.tar.gz
msec-b4c6317586a7293cf2013e56a8612bc9d27f3995.tar.bz2
msec-b4c6317586a7293cf2013e56a8612bc9d27f3995.tar.xz
msec-b4c6317586a7293cf2013e56a8612bc9d27f3995.zip
mkdir_p: corrected test of existence
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