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
\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