annotate start_tester.py @ 29:72f7c5904fbf traipse_dev

Update Manager moves into Beta 0.2 as the code is cleaned up some. The Update Manager is nearly ready to be placed into Grumpy Goblin, though it is not functioning 100%. It will provide users an opportunity to skip the update process, grab new repos, and update by choice.
author sirebral
date Sun, 02 Aug 2009 00:37:23 -0500
parents 6ef4bb8ee8ca
children 90900aa3e944
rev   line source
28
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
1 #!/usr/bin/env python
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
2
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
3 import sys
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
4 import os
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
5
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
6 HG = os.environ["HG"]
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
7
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
8 import pyver
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
9 pyver.checkPyVersion()
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
10
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
11 #os.system(HG + ' pull "http://hg.assembla.com/traipse"')
29
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
12 #os.system(HG + ' pull "http://hg.assembla.com/traipse_dev"')
28
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
13 #os.system(HG + ' pull "http://hg.assembla.com/openrpg"')
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
14 #os.system(HG + ' pull "http://hg.assembla.com/openrpg_dev"')
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
15
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
16 for key in sys.modules.keys():
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
17 if 'orpg' in key:
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
18 del sys.modules[key]
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
19
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
20 from orpg.orpg_wx import *
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
21 import orpg.main
29
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
22 import orpg.tools.updater
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
23 app = orpg.tools.updater.updateApp(0)
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
24 app.MainLoop()
28
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
25
29
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
26 """
28
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
27 if WXLOADED:
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
28 mainapp = orpg.main.orpgApp(0)
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
29 mainapp.MainLoop()
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
30 else:
6ef4bb8ee8ca Update Manager Beta 0.1 release!! This new update manager is a boon
sirebral
parents:
diff changeset
31 print "You really really need wx!"
29
72f7c5904fbf Update Manager moves into Beta 0.2 as the code is cleaned up some.
sirebral
parents: 28
diff changeset
32 """