Suppose I have a module file like this:
# my_module.py print(\"hello\")
Then I have a simple script:
# my_script.py import
Not elegant, but works for me (may have to add a path):
with open ('my_module.py') as aFile: exec (aFile.read () .replace (, ))