[Nvda-dev] commit r1943 - trunk/source

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Nvda-dev] commit r1943 - trunk/source

NVDA Subversion
Author: mdcurran
Date: Tue Apr 22 09:54:55 2008
New Revision: 1943

Log:
nvda.pyw: don't use private function os._exit, just use exit. exit takes an exit code just like os._exit.

Modified:
   trunk/source/nvda.pyw

Modified: trunk/source/nvda.pyw
==============================================================================
--- trunk/source/nvda.pyw (original)
+++ trunk/source/nvda.pyw Tue Apr 22 09:54:55 2008
@@ -134,7 +134,7 @@
 if res in [core.CORE_MAINLOOPERROR,core.CORE_RESTART]:
  winsound.PlaySound("waves\\exit.wav",winsound.SND_FILENAME)
  os.spawnv(os.P_NOWAIT,sys.executable,[os.path.basename(sys.executable)]+sys.argv)
- os._exit(0)
+ exit(0)
 elif res==core.CORE_INITERROR:
  abortWithError(4)
 winUser.setSystemScreenReaderFlag(False)