From 0b0ffe645d015b5f5e6263d48c7067a85f27ab4b Mon Sep 17 00:00:00 2001 From: Philip Sakievich Date: Tue, 11 Oct 2022 22:37:57 -0600 Subject: [PATCH] Ugh python 2 :man_facepalming: --- lib/spack/spack/environment/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py index 01516004979..01a956d6220 100644 --- a/lib/spack/spack/environment/environment.py +++ b/lib/spack/spack/environment/environment.py @@ -67,7 +67,8 @@ # ensure that this base directory exists since we require the root directory to be created # in our checks -os.makedirs(default_env_path, exist_ok = True) +if not os.path.isdir(default_env_path): + os.mkdir(default_env_path) #: Name of the input yaml file for an environment