-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
23 lines (20 loc) · 954 Bytes
/
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
import platform
import subprocess
import sys
def moduleinstall():
subprocess.check_call([sys.executable, "-m", "pip", "install", "PyDrive2"])
subprocess.check_call([sys.executable, "-m", "pip", "install", "ansimarkup"])
subprocess.check_call([sys.executable, "-m", "pip", "install", "climage"])
subprocess.check_call([sys.executable, "-m", "pip", "install", "emojis"])
def applescriptinstall():
subprocess.check_call([sys.executable, "-m", "pip", "install", "applescript"])
if platform.system() == "Windows":
moduleinstall()
elif platform.system() == "Darwin":
moduleinstall()
applescriptinstall()
else:
print("Unfortunately, Nautilus is not supported on Linux and other systems yet. :/")
sys.exit()
currentpythoncmd = sys.executable
print("\nNow that all the needed modules are installed, you can now run 'chatreading.py' using the command '" + currentpythoncmd + " chatreading.py'.")