![]() I'm passing these arguments to subprocess as below: process = subprocess.Popen( Is f-literal string treated differently? It's just a string, eventually. But I'm wondering how python interpret those arguments and supply them to shell. ![]() So I guess that python subprocess treats each argument elements as a 'single' argument even if it contains space. If I split those keyword-value pairs and appending them to the list, everything works as expected. args=[īut when I pass them to subprocess, xcodebuild fails with following message : xcodebuild: error: invalid option '-workspace SomeWorkspace.xcworkspace' It takes several arguments with values, and I tried to create them using literal string interpolation. The desired command is something like below: xcodebuild -workspace SomeWorkspace.xcworkspace -scheme SomeScheme. I'm trying to run shell execution ( xcodebuild) with python subprocess.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |