Skip to content

Commit

Permalink
tools links and mounts compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jul 2, 2024
1 parent aa94435 commit d744c9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/rad/rad/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

"""Utility functions to interact with the Radiant repository."""

import os
import pathlib
import platform

Expand All @@ -37,3 +38,8 @@ def _norm_machine():
ROOT_PATH = pathlib.Path(__file__).resolve().parents[3]
NORM_ARCH = _norm_machine()
NORM_ARCHES = ["x64", "x86", "arm64", "arm"]

# Change the current working directory to the root of the repository.
# This can be necessary for some tooling when the developer is working through
# a symlink, a different directory, or mounted location (like DevDrive).
os.chdir(ROOT_PATH)

0 comments on commit d744c9e

Please sign in to comment.