Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 6acd9ed

Browse files
author
guanghuispark
committed
Update lib_build.py
1 parent 6e7e08a commit 6acd9ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

engine/Scripts/lib_build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def set_params():
122122
gn_params=gn_params + " " + optimize
123123

124124
def set_env_verb():
125+
global platform
125126
global flutter_root_path
126127
flutter_root_path = os.getenv('FLUTTER_ROOT_PATH', 'null')
127128
if flutter_root_path == 'null':
@@ -135,7 +136,10 @@ def set_env_verb():
135136
if path.startswith(engine_path):
136137
print("This environment variable has been set, skip")
137138
return
138-
os.environ["PATH"] = engine_path + "/depot_tools;" + os.environ["PATH"]
139+
if platform == "windows":
140+
os.environ["PATH"] = engine_path + "/depot_tools;" + os.environ["PATH"]
141+
else:
142+
os.environ["PATH"] = engine_path + "/depot_tools:" + os.environ["PATH"]
139143

140144
def get_depot_tools():
141145
print("\nGetting Depot Tools...")

0 commit comments

Comments
 (0)