A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

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

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Im trying to have one module open another,

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  6. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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

  7. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.