OSDN Git Service

Merged main
authorMichael Curran <mick@kulgan.net>
Sat, 17 Mar 2012 22:16:49 +0000 (08:16 +1000)
committerMichael Curran <mick@kulgan.net>
Sat, 17 Mar 2012 22:16:49 +0000 (08:16 +1000)
1  2 
sconstruct
source/config/__init__.py
source/core.py

diff --cc sconstruct
@@@ -306,5 -322,4 +311,5 @@@ symbolsList.extend(env.Glob(os.path.joi
  symbolsArchive = env.SzArchive(outputDir.File("%s_debugSymbols.zip" % outFilePrefix), symbolsList)\r
  env.Alias("symbolsArchive", symbolsArchive)\r
  \r
- env.Default(dist)\r
+ env.Default(portableDist)\r
 +\r
Simple merge
diff --cc source/core.py
@@@ -87,14 -87,12 +87,17 @@@ def doStartupDialogs()
  \r
  def restart():\r
        """Restarts NVDA by starting a new copy with -r."""\r
 +      if globalVars.appArgs.launcher:\r
 +              import wx\r
 +              globalVars.exitCode=2\r
 +              wx.GetApp().ExitMainLoop()\r
 +              return\r
        import subprocess\r
        import shellapi\r
-       shellapi.ShellExecute(None,None,unicode(sys.executable),unicode(subprocess.list2cmdline(sys.argv+['-r'])),None,0)\r
+       shellapi.ShellExecute(None, None,\r
+               sys.executable.decode("mbcs"),\r
+               subprocess.list2cmdline(sys.argv + ["-r"]).decode("mbcs"),\r
+               None, 0)\r
  \r
  def resetConfiguration():\r
        """Loads the configuration, installs the correct language support and initialises audio so that it will use the configured synth and speech settings.\r