title: Run one python script from another python script?
body: <p>I have tried every thing from</p>
  
  <pre><code>if __name__ == "__main__":
  </code></pre>
  
  <p>to</p>
  
  <pre><code>os.system()
  </code></pre>
  
  <p>I have looked through all the other similar questions on here and read official Python documentation.</p>
  
  <p>I can't get this</p>
  
  <pre><code>import os
  
  ask1 = raw_input("Create bid? ") 
  create = "createbid.py %s" % ()
  def questions():
      if ask1 == "yes":
          os.system(create)
      if ask1 == "no":
          quit()
  
  question()
  </code></pre>
  
  <p>to run the ceatebid.py file reliably. I got it to work with</p>
  
  <pre><code>if __name__ == "__main__":
  </code></pre>
  
  <p>but what if I also want to call another script? </p>
  
  <p>I want to call different scripts based on how the questions are answered.</p>