This repository was archived by the owner on Sep 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ def set_params():
122122 gn_params = gn_params + " " + optimize
123123
124124def 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
140144def get_depot_tools ():
141145 print ("\n Getting Depot Tools..." )
You can’t perform that action at this time.
0 commit comments