Merge pull request #388 from blueyed/pass-mainargv
Pass and use original sys.argv to/with workers
This commit is contained in:
@@ -264,6 +264,7 @@ if __name__ == "__channelexec__":
|
||||
import py
|
||||
|
||||
config = remote_initconfig(option_dict, args)
|
||||
config._parser.prog = os.path.basename(workerinput["mainargv"][0])
|
||||
config.workerinput = workerinput
|
||||
config.workeroutput = {}
|
||||
# TODO: deprecated name, backward compatibility only. Remove it in future
|
||||
|
||||
Reference in New Issue
Block a user