Can I build a single file containing all the contents of LIB?

Warren Postma embed at NOSPAM.geocities.com
Thu Jun 15 09:58:06 EDT 2000


I have an embedded system which has no support for long filenames. It's also
a pain to upload the whole LIB subdirectory to this system.  The embedded
system has a FAT filesystem and only supports 8 character filenames with a 3
character extension. The first problem then is with the "exceptions.py" and
from there on.    Since my system recompiles for both native NT/Win32 and
embedded mode, what I would ideally like to do is have a python script
"bundle up" the standard Python library into a file, and then just upload
that bundle. Then I would like it if python would search the \LIB directory
FIRST for xxx.py and if not found, then search in the compressed (or not)
file for it.   I would like the file to be separate from the executable, not
linked in, so I can change the python library without recompiling the
executable.

Suggestions please?

Warren





More information about the Python-list mailing list