diff options
author | Frederic Lepied <flepied@mandriva.com> | 2004-07-29 23:16:24 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2004-07-29 23:16:24 +0000 |
commit | b4c6317586a7293cf2013e56a8612bc9d27f3995 (patch) | |
tree | 5ad613d680d572eaf140e6554c5e9e1a618eaf07 /share | |
parent | 1141402db59a5e53b844652e3f2b25b398bc6c45 (diff) | |
download | msec-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.py | 3 |
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 |