-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem_check.py
More file actions
executable file
·35 lines (26 loc) · 990 Bytes
/
system_check.py
File metadata and controls
executable file
·35 lines (26 loc) · 990 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
import sys
import time
import platform
import wx
import orpg.orpg_version
class system_check:
def start(self,log_file='openrpg_sysinfo.txt'):
self.log_file = open(log_file,'w')
self.log_file.write("OpenRPG System Info " + time.strftime( '%m-%d-%y', time.localtime( time.time() ) ))
self.check_openrpg()
self.check_py()
self.check_wxpython()
self.check_platform()
self.log_file.close()
def check_wxpython(self):
self.log_file.write("\nwxPython Version: " + wx.__version__)
def check_py(self):
self.log_file.write("\nPython: " + sys.version)
def check_platform(self):
self.log_file.write("\nPlatform: " + platform.platform())
def check_openrpg(self):
self.log_file.write("\nOpenRPG Version: " + orpg.orpg_version.VERSION)
self.log_file.write("\nOpenRPG Build: " + orpg.orpg_version.BUILD)
if __name__ == "__main__":
syscheck = system_check()
syscheck.start()