Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows下脚本空格参数问题 #34

Open
dashuizhu opened this issue Nov 6, 2019 · 1 comment
Open

windows下脚本空格参数问题 #34

dashuizhu opened this issue Nov 6, 2019 · 1 comment

Comments

@dashuizhu
Copy link

buildToolsPath = "D:\Program Files\Android\sdk\build-tools\28.0.3"

路径中的空格可以通过r'""' 形式处理
os.system(r'"D:\Program Files\Android\sdk\build-tools\28.0.3\zipalign.exe“’)
这样执行正确

但是再加上参数 就运行不了了。
os.system(r'"D:\Program Files\Android\sdk\build-tools\28.0.3\zipalign -v 4 xxApk xxxApk“’)
'D:\Program' 不是内部或外部命令,也不是可运行程序

用subprocess.Popen()代替os.system(),也没试到正确的写法
目前就卡在这个脚本这里

@dashuizhu
Copy link
Author

dashuizhu commented Nov 6, 2019

当然,问题也可以 把Sdk 和ProtectedApkResignerForWalle 放在 不带空格的目录下来解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant