Skip to content

Commit

Permalink
Merge pull request #93 from RT-Thread/develop
Browse files Browse the repository at this point in the history
【修复】linux 下 PKGS_ROOT 未配置时无法使用的问题。
  • Loading branch information
armink committed May 23, 2019
2 parents feb10d2 + 4bf0ffb commit 0d8bf8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def main():
env_root = os.path.join(os.getenv('USERPROFILE'), '.env')

sys.path = sys.path + [os.path.join(script_root)]

pkgs_root = os.getenv("PKGS_ROOT")
if pkgs_root == None:
pkgs_root = os.path.join(env_root, 'packages')

Export('env_root')
Export('bsp_root')
Expand Down

0 comments on commit 0d8bf8e

Please sign in to comment.