Skip to content

Commit

Permalink
fixed env file vug
Browse files Browse the repository at this point in the history
  • Loading branch information
mezdahun committed Jan 21, 2022
1 parent c1b5259 commit 471dedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abm/metarunner/metarunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run_protocol(self, env_path):
default_env_path = os.path.join(root_abm_dir, ".env")
backup_default_env = os.path.join(root_abm_dir, ".env-orig")
if os.path.isfile(default_env_path) and not os.path.isfile(backup_default_env):
os.rename(default_env_path, backup_default_env)
shutil.copyfile(default_env_path, backup_default_env)
os.remove(default_env_path)
os.rename(env_path, default_env_path)
# here we run the simulation
Expand Down

0 comments on commit 471dedd

Please sign in to comment.