My intention is to import a .py module that is passed as an argument:
module = str(sys.argv[3])
mymod = __import__(module)
However, I run into "ImportError: Import by filename is not supported.". Note that the passed module name is different on different invocation, and there is no common file path. What would be the workaround?