comparison system_check.py @ 0:4385a7d0efd1 grumpy-goblin

Deleted and repushed it with the 'grumpy-goblin' branch. I forgot a y
author sirebral
date Tue, 14 Jul 2009 16:41:58 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4385a7d0efd1
1 import sys
2 import time
3 import platform
4 import wx
5 import orpg.orpg_version
6
7 class system_check:
8
9 def start(self,log_file='openrpg_sysinfo.txt'):
10 self.log_file = open(log_file,'w')
11 self.log_file.write("OpenRPG System Info " + time.strftime( '%m-%d-%y', time.localtime( time.time() ) ))
12 self.check_openrpg()
13 self.check_py()
14 self.check_wxpython()
15 self.check_platform()
16 self.log_file.close()
17
18 def check_wxpython(self):
19 self.log_file.write("\nwxPython Version: " + wx.__version__)
20
21 def check_py(self):
22 self.log_file.write("\nPython: " + sys.version)
23
24 def check_platform(self):
25 self.log_file.write("\nPlatform: " + platform.platform())
26
27 def check_openrpg(self):
28 self.log_file.write("\nOpenRPG Version: " + orpg.orpg_version.VERSION)
29 self.log_file.write("\nOpenRPG Build: " + orpg.orpg_version.BUILD)
30
31
32
33 if __name__ == "__main__":
34 syscheck = system_check()
35 syscheck.start()