mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
skoolos.py in cli
This commit is contained in:
parent
b570006523
commit
ea5bf7c071
|
@ -230,7 +230,9 @@ def teacherCLI(user, password):
|
||||||
]
|
]
|
||||||
ass = prompt(questions)['assignment']
|
ass = prompt(questions)['assignment']
|
||||||
apath = teacher.username + "/" + course + "/" + ass
|
apath = teacher.username + "/" + course + "/" + ass
|
||||||
|
due = input("Enter due date (Example: 2020-08-11 16:58): ")
|
||||||
|
due = due + ":00.000000"
|
||||||
|
due = due.strip()
|
||||||
teacher.addAssignment(apath, course, due)
|
teacher.addAssignment(apath, course, due)
|
||||||
|
|
||||||
|
|
||||||
|
@ -315,9 +317,9 @@ def authenticate():
|
||||||
#Macos: chromdriver-mac
|
#Macos: chromdriver-mac
|
||||||
#Windows: chromdriver.exe
|
#Windows: chromdriver.exe
|
||||||
if('CLI' in os.getcwd()):
|
if('CLI' in os.getcwd()):
|
||||||
path = os.path.join(os.getcwd(), '../','chromedriver/chromedriver-mac')
|
path = os.path.join(os.getcwd(), '../','chromedriver-mac')
|
||||||
else:
|
else:
|
||||||
path = os.path.join(os.getcwd(), 'chromedriver/chromedriver-mac')
|
path = os.path.join(os.getcwd(), 'chromedriver-mac')
|
||||||
|
|
||||||
browser = webdriver.Chrome(path)
|
browser = webdriver.Chrome(path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user