mirror of
https://gitee.com/coder-xiaomo/gitee2github
synced 2025-09-06 04:01:39 +08:00
修复bat所在路径带空格执行报错情况
This commit is contained in:
@@ -71,7 +71,7 @@ def transferRepos(matchList, WorkingDir, fromRepoProtocol = 'https', toRepoProto
|
|||||||
print("命令文件生成完毕,请查看:", batFilePath)
|
print("命令文件生成完毕,请查看:", batFilePath)
|
||||||
|
|
||||||
if input("是否直接执行(不推荐)?输入y执行,其他输入不执行并继续: ") == "y":
|
if input("是否直接执行(不推荐)?输入y执行,其他输入不执行并继续: ") == "y":
|
||||||
os.system(batFilePath)
|
os.system('"{}"'.format(batFilePath))
|
||||||
# 下面这样执行不行,无法保证当前目录
|
# 下面这样执行不行,无法保证当前目录
|
||||||
# for commandForExecute in commands:
|
# for commandForExecute in commands:
|
||||||
# print("[正在执行]", commandForExecute)
|
# print("[正在执行]", commandForExecute)
|
||||||
|
Reference in New Issue
Block a user