Skip to content

Commit

Permalink
Merge branch 'develop' into mish2/dg_support
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelpmishLLNL committed Dec 5, 2024
2 parents c9219f3 + 194b3ad commit fb01e66
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/llnl/common_build_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,7 @@ def get_build_dir(prefix, host_config):


def get_repo_dir():
script_dir = os.path.dirname(os.path.realpath(__file__))
return os.path.abspath(pjoin(script_dir, "../.."))
return os.path.abspath(pjoin(get_script_dir(), "../.."))


def get_build_and_test_root(prefix, timestamp):
Expand Down Expand Up @@ -685,7 +684,7 @@ def get_shared_spot_dir():


def get_uberenv_path():
return pjoin(get_script_dir(), "../uberenv/uberenv.py")
return pjoin(get_repo_dir(), "scripts/uberenv/uberenv.py")


def on_rz():
Expand All @@ -703,7 +702,7 @@ def get_script_dir():
def get_project_name():
global _project_name
if not _project_name:
uberenv_config_path = os.path.abspath(os.path.join(get_script_dir(), "../../.uberenv_config.json"))
uberenv_config_path = pjoin(get_repo_dir(), ".uberenv_config.json")
_project_name = "UNKNOWN_PROJECT"
if os.path.exists(uberenv_config_path):
with open(uberenv_config_path) as json_file:
Expand Down

0 comments on commit fb01e66

Please sign in to comment.