Skip to content

Commit

Permalink
Reactivate creation of software_environment.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Aug 10, 2016
1 parent 4dd30c6 commit 6eb8143
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils/python/CIME/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ def _case_setup_impl(case, caseroot, casebaseid, clean=False, test_mode=False, r
env_module = case.get_env("mach_specific")
env_module.make_env_mach_specific_file(compiler, debug, mpilib, "sh")
env_module.make_env_mach_specific_file(compiler, debug, mpilib, "csh")
# FIXME This code is not working with tcsh and csh users using modules
# with open("software_environment.txt", "w") as f:
# f.write(env_module.list_modules())
# run_cmd_no_fail("echo -e '\n' >> software_environment.txt && \
# env >> software_environment.txt")
with open("software_environment.txt", "w") as f:
f.write(env_module.list_modules())
run_cmd_no_fail("echo -e '\n' >> software_environment.txt && \
env >> software_environment.txt")

###############################################################################
def case_setup(case, clean=False, test_mode=False, reset=False):
Expand Down

0 comments on commit 6eb8143

Please sign in to comment.