diff --git a/weboob/core/backendscfg.py b/weboob/core/backendscfg.py index 64d1b235..dde609ba 100644 --- a/weboob/core/backendscfg.py +++ b/weboob/core/backendscfg.py @@ -42,7 +42,8 @@ class BackendsConfig(object): try: mode = os.stat(confpath).st_mode except OSError: - os.makedirs(os.path.dirname(confpath)) + if not os.path.isdir(os.path.dirname(confpath)): + os.makedirs(os.path.dirname(confpath)) if sys.platform == 'win32': fptr = open(confpath, 'w') fptr.close()