Skip to content

Commit

Permalink
解决ci环境下找不到PKGS_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ComerLater committed Apr 7, 2024
1 parent 74b70ad commit aac46c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
if not "PKGS_DIR" in os.environ:
if "ENV_ROOT" in os.environ:
os.environ["PKGS_DIR"] = os.path.join(os.environ["ENV_ROOT"], "packages")
elif sys.platform == "win32":
os.environ["PKGS_DIR"] = os.path.join(os.environ["USERPROFILE"], ".env/packages")
else:
os.environ["PKGS_DIR"] = os.path.join(Dir('#').abspath, "packages")
os.environ["PKGS_DIR"] = os.path.join(os.environ["HOME"], ".env/packages")

sys.path = sys.path + [os.path.join(Rtt_Root, 'tools'), os.path.join(Rtt_Root, 'tools/kconfiglib')]

Expand Down

0 comments on commit aac46c8

Please sign in to comment.