-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
44 lines (30 loc) · 1.02 KB
/
setup.py
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
37
38
39
40
41
42
43
44
import subprocess
import sys
import time
from __dwnldDrivers.versions import *
def install(name):
subprocess.check_call([sys.executable, '-m', 'pip', 'install', name])
def main():
my_packages = ['pyqt5', 'pandas', 'numpy', 'selenium', 'keyboard']
installed_pr = []
for package in my_packages:
install(package)
print('\n')
print('Chrome')
chrome_ver = get_chrome_version()
if chrome_ver != None:
is_chrome_there = 1
installed_pr.append('Chrome')
setup_Chrome(chrome_ver)
else:
is_chrome_there = 0
print('Chrome isn\'t installed')
if is_chrome_there == 0:
print('Error - Setup installation failed \nReason - Please install Chrome browser to complete setup process')
exit()
for index, pr in enumerate(installed_pr, start=1):
print('\n[*] ' + str(index) + ' ' + pr)
print('Setup Completed, This window will be automatically closed after 10 seconds')
time.sleep(10)
if __name__ == '__main__':
main()