Skip to content

Problem running bdfr with subprocess.Popen #569

Answered by Firestorm2k7
Firestorm2k7 asked this question in Q&A
Discussion options

You must be logged in to vote

I am utterly confused, but I've accidentally got it to work Oo
I've used a bastardized version of some code to implement variable arguments while waiting:

# populate list of arguments
args = ["C:/Users/<User>/AppData/Roaming/Python/Python310/site-packages/bdfr/__main__.py"]

args.extend("download".split())
args.extend("C:/downloads".split())
args.extend("-s playstupidgames".split())
args.extend("-L 10".split())

# run script
p = subprocess.Popen([sys.executable] + args)

(copied and changed from https://stackoverflow.com/questions/20140137/passing-variables-to-subprocess-popen )

I expected to fiddle around with that for a bit and expect the same "does not exist or cannot be found" error a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Serene-Arc
Comment options

@Firestorm2k7
Comment options

Answer selected by Firestorm2k7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants