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