Skip to content

How to pass argument 'user_multi_procs=True' using Driver(uc=True)? #3273

Answered by mdmintz
ZcodeZ777 asked this question in Q&A
Discussion options

You must be logged in to vote

Use the following code instead to enable safe multithreading in your files:

import sys
sys.argv.append("-n")

If multiple files, you can check to see if it's already there before adding it:

import sys
if "-n" not in sys.argv:
    sys.argv.append("-n")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZcodeZ777
Comment options

Answer selected by mdmintz
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