dfay Posted August 23, 2018 Author Share Posted August 23, 2018 (edited) I made a few fixes to your code but it's still not working for me either: import json, os, subprocess, sys cmd = ['./tag', '-r', '\*'] + json.loads(os.getenv('filesList')) subprocess.call(cmd) That fixed an error caused by a missing ] and puts all the arguments as separate list items, both of which I think are necessary, but it doesn't work.... Confirmed that it works on the command line. @deanishe any ideas? Edited August 23, 2018 by dfay Jasondm007 1 Link to comment Share on other sites More sharing options...
deanishe Posted August 23, 2018 Share Posted August 23, 2018 I don't have tag and I can't download the workflows (cl.ly isn't responding), so I can't test it, but that \* is probably incorrect. You aren't running a shell, so there's no need to escape special shell characters like *. It also won't work as a shell expansion either, of course. Jasondm007 1 Link to comment Share on other sites More sharing options...
Jasondm007 Posted August 23, 2018 Share Posted August 23, 2018 @dfay Thanks for taking a crack at it! @deanishe Thanks for the suggestion, too. It works!! So, for others that might be interested, the following modification to @dfay's code does the trick: import json, os, subprocess, sys cmd = ['./tag', '-r', '*'] + json.loads(os.getenv('filesList')) subprocess.call(cmd) Thanks a ton, @dfay & @deanishe!! dfay 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now