Skip to content

Commit 320332c

Browse files
committed
Fix bootstrap.bat is not recognized
* Fix `bootstrap.bat is not recognized` if webui library does not exist
1 parent 004288f commit 320332c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PyPI/Package/src/webui/webui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,12 @@ def run_cmd(command):
357357

358358
def _download_library():
359359
script = 'sh bootstrap.sh'
360+
cd = 'cd '
360361
if platform.system() == 'Windows':
361362
script = 'bootstrap.bat'
363+
cd = 'cd /d '
362364
# Run: `cd {folder} && bootstrap.sh minimal`
363-
run_cmd('cd ' + _get_current_folder() +
365+
run_cmd(cd + _get_current_folder() +
364366
' && ' + script + ' minimal')
365367

366368

0 commit comments

Comments
 (0)