mrstephengross:
>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? 

I guess you can uuencode your tar file, and put the result in a multiline
string. See module 'uu'.

-- 
René Pijlman
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to