From b0458306b9c7cc60d4abd28c952dee21c5ecf9e7 Mon Sep 17 00:00:00 2001 From: Shreyas Ananthan Date: Tue, 9 Jan 2024 14:15:32 -0700 Subject: [PATCH] Fix typo in HelyxEnv --- caelus/config/cmlenv.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/caelus/config/cmlenv.py b/caelus/config/cmlenv.py index 4decb6f..388e235 100644 --- a/caelus/config/cmlenv.py +++ b/caelus/config/cmlenv.py @@ -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): @@ -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 )