Say I have a package \"mylibrary\".
I want to make \"mylibrary.config\" available for import, either as a dynamically created module, or a module imported from an en
As well as the following:
import sys, types config = types.ModuleType('config') sys.modules['mylibrary.config'] = config
You also need to do:
import mylibrary mylibrary.config = config