Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 9 Online
OpenStudy (anonymous):

Hi im trying to make a python file open another python file and run it while still continuing on with the same program

OpenStudy (anonymous):

I would need to use an run statement but im not sure how to make the rest of the module continue to run

OpenStudy (anonymous):

Can you explain more about what you're trying to do? Typically multi-processing is done using the subprocess module, but depending on what you're trying to accomplish that may not be the best solution for you.

OpenStudy (anonymous):

Im trying to have one module open another,

OpenStudy (anonymous):

No, you're trying to do something else, and you think the best way to accomplish it is to have 2 modules 'running' at the same time. But without knowing what you're actually trying to do I can't give you good advice.

OpenStudy (anonymous):

Im trying to have one python moduel open another and run it, thats all im trying to do

OpenStudy (anonymous):

in the same directory, wouldn't "import <name>" be sufficient? It also runs statements in the other file, not just imports the functions/classes It won't be concurrent though

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!