How to make a copy of a python module at runtime?
You can always do tricks like importing a module then deleting it from sys.modules or trying to copy a module. However, Python already provides what you want in its Standard Library. import imp # Standard module to do such things you want to. # We can import any module including standard ones: os1=imp.load_module(‘os1’, *imp.find_module(‘os’)) # … Read more