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

Function GetEnvPath

tools/env_utility.py:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def GetEnvPath():
23 if "ENV_ROOT" in os.environ:
24 return os.environ["ENV_ROOT"]
25
26 if platform.system() == 'Windows':
27 env_root = os.path.join(os.environ['USERPROFILE'], '.env')
28 else:
29 env_root = os.path.join(os.environ['HOME'], '.env')
30
31 return env_root
32
33
34def GetPkgPath():

Callers 3

GetPkgPathFunction · 0.85
GetSDKPackagePathFunction · 0.85
GetSDKPathFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected