-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.py
33 lines (27 loc) · 901 Bytes
/
run.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
#!/bin/bash
"""
Run this script if you are unsure whether which script to run.
Refere to README.md for further information.
"""
import os
from sys import platform
def main():
try:
# Since the os.system commands for each operating system is different.
if platform == 'win32':
os.system("python3 win.py")
elif platform == 'darwin':
os.system("python3 mac.py")
elif platform == 'linux':
os.system("python3 linux.py")
# This will happen probably if the client is using a different shell in a particular os.
else:
with open("README.md", 'r') as f:
print(f.read())
from time import sleep
print("exiting after 20 seconds")
sleep(20)
except (KeyboardInterrupt, EOFError):
exit("\nEXITED")
if __name__ == '__main__':
main()