diff --git a/.circleci/config.yml b/.circleci/config.yml index 09d8850..e37488d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - psyplot: psyplot/psyplot-ci-orb@1.5.31 + psyplot: psyplot/psyplot-ci-orb@1.5.32 mattermost-plugin-notify: nathanaelhoun/mattermost-plugin-notify@1.2.0 executors: diff --git a/psyplot/config/rcsetup.py b/psyplot/config/rcsetup.py index 8124674..ef29efc 100755 --- a/psyplot/config/rcsetup.py +++ b/psyplot/config/rcsetup.py @@ -1025,7 +1025,7 @@ def get_configdir(name='psyplot', env_key='PSYPLOTCONFIGDIR'): p = os.path.join(h, '.' + name) if not os.path.exists(p): - os.makedirs(p) + os.makedirs(p, exist_ok=True) return p diff --git a/psyplot/project.py b/psyplot/project.py index 6336ce0..fc8a862 100755 --- a/psyplot/project.py +++ b/psyplot/project.py @@ -1163,7 +1163,7 @@ def save_project(self, fname=None, pwd=None, pack=False, **kwargs): if pack and fname is not None: target_dir = os.path.dirname(fname) if not os.path.exists(target_dir): - os.makedirs(target_dir) + os.makedirs(target_dir, exist_ok=True) def tmp_it(): from tempfile import NamedTemporaryFile