pydoit / doit

CLI task management & automation tool
http://pydoit.org
MIT License
1.87k stars 175 forks source link

os.environ are not loading in the Moduletask #352

Closed jvcodes closed 4 years ago

jvcodes commented 4 years ago

Help me to pass the Env variable using Doitmain like we will pass in subprocess

subprocess.run(shell_cmd,env = os.environ.copy()) is there any configuration in the Doitmain to pass env variable. sys.exit(DoitMain(ModuleTaskLoader(my_module_with_tasks)).run(sys.argv[1:])) ??

jvcodes commented 4 years ago

@schettino72 can you please help me here to pass the os.environ to DoitMain ?