Merge pull request #388 from blueyed/pass-mainargv

Pass and use original sys.argv to/with workers
This commit is contained in:
Bruno Oliveira
2018-12-12 15:21:56 -02:00
committed by GitHub
4 changed files with 73 additions and 0 deletions

View File

@@ -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