Changeset 38:08f7e6592452 for src/mlx/mlx.py
- Timestamp:
- 03/04/12 09:35:01 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/mlx.py
r36 r38 7 7 import os 8 8 import sys 9 10 if os.name=="nt": 11 import win32api 9 12 10 13 #-------------------------------------------------------------------------------------- … … 28 31 config = Config() 29 32 gui = GUI(programDirectory, config) 30 33 31 34 sys.stdout = StdIOHandler(gui) 32 35 sys.stderr = StdIOHandler(gui) 33 36 34 gui.build(programDirectory) 37 try: 38 gui.build(programDirectory) 39 40 gui.run() 41 finally: 42 gui.flushStdIO() 43 sys.stdout = sys.__stdout__ 44 sys.stderr = sys.__stderr__ 35 45 36 gui.run() 46 if gui.toRestart: 47 programPath = os.path.join(os.path.dirname(sys.argv[0]), 48 "runmlx.exe" if os.name=="nt" else "runmlx.sh") 49 if os.name=="nt": 50 programPath = win32api.GetShortPathName(programPath) 51 52 os.execl(programPath, programPath) 37 53 38 54 #--------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.