80 |
print "RELOAD" |
print "RELOAD" |
81 |
global globalScenes |
global globalScenes |
82 |
global globalHelp, globalSceneMap, globalSceneHelp |
global globalHelp, globalSceneMap, globalSceneHelp |
83 |
|
global currentScene |
84 |
|
|
85 |
if 1: |
if 1: |
86 |
reloadmod.reloadModules() |
reloadmod.reloadModules() |
89 |
demowindow.w = w |
demowindow.w = w |
90 |
if "." not in scenefile or "/" in scenefile: |
if "." not in scenefile or "/" in scenefile: |
91 |
exec open(scenefile) in globals(), globals() |
exec open(scenefile) in globals(), globals() |
92 |
|
if currentScene == None: |
93 |
|
currentScene = Scene() |
94 |
else: |
else: |
95 |
print "No file found, trying module." |
print "No file found, trying module." |
96 |
exec """ |
exec """ |
121 |
|
|
122 |
print globalScenes, globalSceneHelp, globalSceneMap |
print globalScenes, globalSceneHelp, globalSceneMap |
123 |
|
|
|
global currentScene |
|
124 |
currentScene = globalSceneMap["F1"] |
currentScene = globalSceneMap["F1"] |
125 |
GlobalScene.__doc__ = globalHelp |
GlobalScene.__doc__ = globalHelp |
126 |
|
|