attempting to start a python program properly
parent
28ca120c9a
commit
3ce8607678
|
@ -55,8 +55,12 @@ def handlechoice():
|
||||||
print("sorry, I didn't get that, type either y or n:")
|
print("sorry, I didn't get that, type either y or n:")
|
||||||
handlechoice()
|
handlechoice()
|
||||||
|
|
||||||
if os.path.exists('/home/m455/code/projects/nicethings/list.txt') == True:
|
def main():
|
||||||
|
if os.path.exists('/home/m455/code/projects/nicethings/list.txt') == True:
|
||||||
handleargs()
|
handleargs()
|
||||||
else:
|
else:
|
||||||
print("list.txt doesn't exist\ndo you want me to make a list.txt file right now? (y/n)")
|
print("list.txt doesn't exist\ndo you want me to make a list.txt file right now? (y/n)")
|
||||||
handlechoice()
|
handlechoice()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in New Issue