Skip to content

Commit

Permalink
Fix typo in HelyxEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
sayerhs committed Jan 9, 2024
1 parent b18fc99 commit b045830
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions caelus/config/cmlenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def environ(self):
@property
def foam_bashrc(self):
"""Return the path to the bashrc file"""
return os.path.join(self.project_dir, "platforms", "activeBuild.cshrc")
return os.path.join(self.project_dir, "platforms", "activeBuild.shrc")

@property
def site_dir(self):
Expand Down Expand Up @@ -871,15 +871,13 @@ def etc_file(self, fname):
def _process_helyx_env(self, project_dir):
"""Parse the bashrc file and return the environment variables"""
extra_vars = "PATH LD_LIBRARY_PATH MPI_ARCH_PATH".split()
script_path = os.path.join(
project_dir, "platforms", "activeBuild.cshrc"
)
script_path = os.path.join(project_dir, "platforms", "activeBuild.shrc")
if not os.path.exists(script_path):
raise FileNotFoundError(
f"Cannot find Helyx config file: {script_path}"
)

bash_cmd = f"bash --noprofile -norc -c 'source {script_path}' && env"
bash_cmd = f"bash --noprofile -norc -c 'source {script_path} && env'"
pp = subprocess.Popen(
bash_cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True
)
Expand Down

0 comments on commit b045830

Please sign in to comment.