mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
installation instructions
This commit is contained in:
parent
9bd600a8f0
commit
ceeb3cc660
|
@ -1,2 +1,14 @@
|
|||
Installation
|
||||
============
|
||||
============
|
||||
|
||||
1. Git clone repository:
|
||||
|
||||
https://gitlab.tjhsst.edu/understudyathon-2020/group-1/schoolos.git
|
||||
|
||||
2. Install repository and create env
|
||||
|
||||
cd SkoolOS
|
||||
python3 -m venv env
|
||||
source env/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
|
|
16
skoolos.py
16
skoolos.py
|
@ -596,8 +596,22 @@ def authenticate():
|
|||
# Linux: chromdriver-linux
|
||||
# Macos: chromdriver-mac
|
||||
# Windows: chromdriver.exe
|
||||
path = os.path.join(os.getcwd(), 'chromedriver', 'chromedriver-mac')
|
||||
print("OS: ")
|
||||
print("MacOS")
|
||||
print("Linux")
|
||||
print("Windows")
|
||||
|
||||
os = input("Enter OS: ")
|
||||
while(os != "Windows" or os != "Linux" or os != "Macos"):
|
||||
print("Not valid OS")
|
||||
os = input("Enter OS: ")
|
||||
if(os == 'Windows'):
|
||||
path = os.path.join(os.getcwd(), 'chromedriver', 'chromedriver.exe')
|
||||
if(os == 'MacOS'):
|
||||
path = os.path.join(os.getcwd(), 'chromedriver', 'chromedriver-linux')
|
||||
if(os == 'Linux'):
|
||||
path = os.path.join(os.getcwd(), 'chromedriver', 'chromedriver-mac')
|
||||
|
||||
browser = webdriver.Chrome(path)
|
||||
|
||||
browser.get("localhost:8000/login")
|
||||
|
|
Loading…
Reference in New Issue
Block a user