Skip to content

Commit

Permalink
fix env_path
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Mar 27, 2024
1 parent e1bd816 commit b9d2c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_base/project/condaenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __getattr__(self, item):
def create(self, env_name, env_file, use_mamba=False, global_installation=True):
exe = "mamba" if use_mamba else "conda"
env_lst = list_all_known_prefixes()
env_path = os.path.join(os.path.abspath(self._env_path), env_name)
if env_name not in env_lst and env_path not in env_lst:
command_lst = [
exe,
Expand All @@ -36,7 +37,6 @@ def create(self, env_name, env_file, use_mamba=False, global_installation=True):
]
if not global_installation:
os.makedirs(self._env_path, exist_ok=True)
env_path = os.path.join(os.path.abspath(self._env_path), env_name)
command_lst += [
"--prefix",
env_path,
Expand Down

0 comments on commit b9d2c03

Please sign in to comment.