-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
38 lines (31 loc) · 897 Bytes
/
main.py
File metadata and controls
38 lines (31 loc) · 897 Bytes
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
#Term Version: 0.1.3-beta-1
#Import platform
import platform
import libs.dtime as dt
import libs.printwith as pw
import libs.inputwith as iw
import libs.getPc as getPc
from moduls.config import _showPc
#If OS is Windows bypass import
#Because you don't need to external library for surf in command
if platform.system() == 'Windows':
pass
else:
import libs.readline as rl
import moduls.shell as shell
# Main function: when program started.
if __name__ == "__main__":
#If platform doesn't Windows run function.
if platform.system() != "Windows":
rl.arrowKeys()
dt.dateAndTime()
getPc.getUsername()
#check show pc config property
if _showPc != "0":
if platform.system() != 'Windows':
getPc.getLinuxPc()
else:
getPc.getPc()
else:
pass
shell.runShell(__file__)