Embedding a binary file in a python script

mrstephengross mrstephengross at hotmail.com
Wed Feb 15 11:44:39 EST 2006


I want to find a way to embed a tar file *in* my python script, and
then use the tarfile module to extract it. That is, instead of
distributing two files (extractor.py and archive.tar) I want to be able
to distribute *one* file (extractor-with-embedded-archive.py). Is there
a way to do this? 

Thanks,
--Steve (mrstephengross at hotmail.com)




More information about the Python-list mailing list