When trying to reuse the doit module in a standalone script that doesn't behave exactly like a dodo.py would, it's impossible to reuse doit.loader.load_doit_config() passing sys.modules[__name__] (the current "main" module), because it relies on the module object having a get method. That's not the case for the main module, it appears.
So for line 211 in the current version of loader.py I would suggest to replace:
When trying to reuse the doit module in a standalone script that doesn't behave exactly like a
dodo.py
would, it's impossible to reusedoit.loader.load_doit_config()
passingsys.modules[__name__]
(the current "main" module), because it relies on the module object having aget
method. That's not the case for the main module, it appears.So for line 211 in the current version of
loader.py
I would suggest to replace:.... by:
Environment
Thanks,
Oliver