summaryrefslogtreecommitdiff
path: root/src/plugin_manager.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-09 03:45:10 +0200
committermathieui <mathieui@mathieui.net>2013-06-09 03:45:10 +0200
commit9eaffe1369f2be177576402f20edcd114a1eaa9d (patch)
tree7230d1ac073f3327964088395cec0f900fbf2710 /src/plugin_manager.py
parent9b8ed569bb202da1c1a7e88eff32152730b3f322 (diff)
downloadpoezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.gz
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.bz2
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.tar.xz
poezio-9eaffe1369f2be177576402f20edcd114a1eaa9d.zip
Fix the os.makedirs calls so that they don’t traceback for nothing
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r--src/plugin_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin_manager.py b/src/plugin_manager.py
index 9e253f97..74d5a2d3 100644
--- a/src/plugin_manager.py
+++ b/src/plugin_manager.py
@@ -38,14 +38,14 @@ if not plugins_conf_dir:
plugins_conf_dir = os.path.expanduser(plugins_conf_dir)
try:
- os.makedirs(plugins_dir)
+ os.makedirs(plugins_dir, exist_ok=True)
except OSError:
pass
else:
load_path.append(plugins_dir)
try:
- os.makedirs(plugins_conf_dir)
+ os.makedirs(plugins_conf_dir, exist_ok=True)
except OSError:
pass