[wxPython-users] GUI2Exe - Change Python version?

Aaron Brady castironpi at comcast.net
Wed Jan 9 14:17:18 PST 2008


Hi,

> -----Original Message-----
> From: Andrea Gavana [mailto:andrea.gavana at gmail.com]
> Sent: Wednesday, January 09, 2008 4:09 PM
> 
> On Jan 9, 2008 11:02 PM, Aaron Brady wrote:
> > > -----Original Message-----
> > > From: Andrea Gavana [mailto:andrea.gavana at gmail.com]
> > > Sent: Wednesday, January 09, 2008 3:56 PM
> > >
> > > machine, but it looks to me you just need to change the PATH system
> > > variable to make your PC aware on where "python.exe" lives. So, for me
> > > at the moment, the console command "python" just invokes
> > > C:\Python25\python.exe. If the Python versions switch is as easy as
> >
> > Does GUI2Exe work by invoking a local Python instance on your distro.
> > machines?  Or does it include Python zipped into the EXE?  That is, do
> you
> > want to vary the Python version at compile-time or at run-time?
> ...
> # Build the compilation command
> cmd = 'python -u "%s" %s %s'%(tmpFileName, self.compiler, dryRun)
> ...
> self.pid = wx.Execute(cmd, wx.EXEC_ASYNC, self.process)

How about just:

pypath= 'c:\\python24'
cmd = '%s\\python -u "%s" %s %s'%
	(pypath, tmpFileName, self.compiler, dryRun)

Change by hand or in a menu, no sys.path or %PATH% change?




More information about the wxpython-users mailing list