I have a module that has the usual
if __name__ == \'__main__\': do stuff...
idiom.
I\'d like to import that from another module
Code in a main stanza usually never makes sense to run directly. If you want to run it then use subprocess to run it in another Python interpreter.
subprocess