Creating tgz file
Gerhard Häring
gerhard.haering at gmx.de
Tue Dec 3 13:52:56 EST 2002
More information about the Python-list mailing list
Tue Dec 3 13:52:56 EST 2002
- Previous message (by thread): Creating tgz file
- Next message (by thread): Newt/Snack examples
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Guettler wrote:
> Hi!
>
> Is there a way to create a tgz file with python?
>
> os.system('tar -czf ...') is not portable.
There's a tarfile module that we'll maybe see in 2.3.
http://www.gustaebel.de/lars/tarfile/
For compression, you should be able to use the standard 'gzip' module.
-- Gerhard
- Previous message (by thread): Creating tgz file
- Next message (by thread): Newt/Snack examples
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list