Changeset 373:cf2b6b8a3973 for src/mlx/mlx.py
- Timestamp:
- 12/18/12 10:08:43 (11 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
r298 r373 3 3 from i18n import setLanguage 4 4 from sound import initializeSound 5 from util import secondaryInstallation 5 6 6 7 import os … … 51 52 52 53 instance.close() 53 os.execv(programPath, args) 54 os.execv(programPath, args) 54 55 55 56 #-------------------------------------------------------------------------------------- … … 60 61 61 62 global instance 62 instance = SingleInstance("mlx", raiseCallbackWrapper) 63 instance = SingleInstance("mlx" + ("-secondary" if secondaryInstallation 64 else ""), raiseCallbackWrapper) 63 65 if not instance: return 64 66 … … 69 71 70 72 if (len(sys.argv)<=1 or sys.argv[1]!="usedeflang") and config.setupLocale(): 71 restart(["usedeflang"] )73 restart(["usedeflang"] + (["secondary"] if secondaryInstallation else [])) 72 74 73 75 setLanguage(programDirectory, config.getLanguage()) 74 76 75 77 from .gui.gui import GUI 76 78 gui = GUI(programDirectory, config) 77 79 78 80 sys.stdout = StdIOHandler(gui) 79 81 sys.stderr = StdIOHandler(gui)
Note:
See TracChangeset
for help on using the changeset viewer.