-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.py
More file actions
38 lines (29 loc) · 734 Bytes
/
menu.py
File metadata and controls
38 lines (29 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
import sys
#import imageDownload
import imageScrubber
#import loadData
def userChoice():
invalid = True
while invalid:
choice = input(">>")
if choice == "make":
imageScrubber.scrub()
invalid = False
elif choice == "load":
invalid = False
elif choice == "exit":
sys.exit()
else:
print("Incorrect command.")
return
rootDir = os.getcwd()
modelDir = rootDir + "\\" + "models"
exit = False
while (exit != True):
print("Available models in " + modelDir)
for model in os.listdir(modelDir):
print(model)
print("\n")
print("Available Commands: make, load, exit")
userChoice()