From: MHammond at skippinet.com.au (Mark Hammond)
Date: Sun, 11 Apr 1999 08:57:49 +1000
Subject: Python without registry entries
References: <370fb711.28093946@news.demon.co.uk>
Message-ID: <7eol16$1l2$1@m2.c2.telstra-mm.net.au>
Content-Length: 1165
X-UID: 1508                                                  

Paul Moore wrote in message <370fb711.28093946 at news.demon.co.uk>...

>However, it would be nice to be able to run Python, at some level,
>without *any* configuration changes (registry entries, environment
>variables) at all. (Perl runs fine from a CD binary distribution, with
>no registry settings). Can I do this? If so, what (if any) changes are
>needed to the basic installed distribution?

You can.  Python does not _need_ the registry for anything.  Python can
build a default sys.path when it starts, so assuming your .py files are in a
"standard" place (eg, a .\lib directory off you executable) no additional
paths are needed.

pywintypes and pythoncom do need special treatment without the registry.  If
you do a dejanews search, I posted some code that can load these 2 modules
without the registry.

Further, you can change a string in your compiled python15.dll, and you can
ensure that it will not conflict with other versions of Python the user may
already have...

Ive packaged Python like this a number of times.

Easiest way to go: Rename your Python registry key, then start Python.exe
and print sys.path.  Then work from that :-)
Mark.







