Python-2.5.exe?

Nick Craig-Wood nick at craig-wood.com
Thu Nov 16 01:32:55 EST 2006


Fredrik Lundh <fredrik at pythonware.com> wrote:
>  Andrew Burton wrote:
> 
> > What Python is best for installing to a USB Drive?  I've actually got 
> > 2.5 on a drive, but I forget which installation package I used.  It 
> > seems to me that it was an EXE file, but I cannot seem to find one of 
> > those today.
> > 
> > Can the Python-2.5.msi installation files from python.org be installed 
> > so as not to touch the registry, to make them portable?
> 
>  python doesn't depend on the registry settings for normal use, so
>  you can simply install python as usual, copy python25.dll from 
>  c:\windows\system32 to c:\python25, and then copy (or move) the
>  entire c:\python25 tree to your USB drive.

As well as the above, I find a little .bat file like this to set some
paths and start python or your application is helpful, eg

@echo off
set DEMOHOME=%CD%
set PYTHONHOME=%DEMOHOME%\Python24
set PYTHONPATH=%PYTHONHOME%;%DEMOHOME%\Demo\Python
set PYTHON=%PYTHONHOME%\python.exe
set PYTHONW=%PYTHONHOME%\pythonw.exe
set PATH=%PYTHONHOME%;%PATH%
start "Demo" "%PYTHONW%" "demo.pyw"

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list