MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / GetPkgPath

Function GetPkgPath

tools/env_utility.py:34–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def GetPkgPath():
35 if "PKGS_DIR" in os.environ:
36 return os.environ["PKGS_DIR"]
37 elif "PKGS_ROOT" in os.environ:
38 return os.environ["PKGS_ROOT"]
39 elif GetEnvPath():
40 return os.path.join(GetEnvPath(), "packages")
41 else:
42 return None
43
44def GetSDKPackagePath():
45 env = GetEnvPath()

Callers 1

Calls 2

GetEnvPathFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected