Fredrik Lundh <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to