Rev 163: When frozen, use sys.executable, not sys.argv[0] in http://bzr.arbash-meinel.com/plugins/explorer

John Arbash Meinel john at arbash-meinel.com
Tue Jul 7 17:49:06 BST 2009


At http://bzr.arbash-meinel.com/plugins/explorer

------------------------------------------------------------
revno: 163
revision-id: john at arbash-meinel.com-20090707164900-fgx5vfuzosa2ty1x
parent: john at arbash-meinel.com-20090707164356-7b3mwv1zyhrnldb6
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: explorer
timestamp: Tue 2009-07-07 11:49:00 -0500
message:
  When frozen, use sys.executable, not sys.argv[0]
-------------- next part --------------
=== modified file 'lib/explorer.py'
--- a/lib/explorer.py	2009-07-07 16:43:56 +0000
+++ b/lib/explorer.py	2009-07-07 16:49:00 +0000
@@ -785,7 +785,7 @@
     def _get_bzr_executable(self):
         if getattr(sys, 'frozen', None) is not None:
             # Being run from a compiled executable
-            return sys.argv[0]
+            return [sys.executable]
         # This should be 'python path/to/bzr'
         return [sys.executable, sys.argv[0]]
 



More information about the bazaar-commits mailing list