![]() |
The Gaudi Framework
v28r0
|
Classes | |
class | ZipdirError |
Class for generic exception coming from the zipdir() function. More... | |
Functions | |
def | _zipChanges (directory, infolist) |
Collect the changes to be applied to the zip file. More... | |
def | checkEncoding (fileObj) |
def | zipdir (directory, no_pyc=False) |
Make a zip file out of a directory containing python modules. More... | |
def | main (argv=None) |
Main function of the script. More... | |
|
private |
Collect the changes to be applied to the zip file.
directory | directory to be packed in the zip file |
infolist | list of ZipInfo objects already contained in the zip archive |
Definition at line 27 of file ZipPythonDir.py.
def ZipPythonDir.checkEncoding | ( | fileObj | ) |
Check that a file honors the declared encoding (default ASCII for Python 2 and UTF-8 for Python 3). Raises a UnicodeDecodeError in case of decoding problems and LookupError if the specified codec does not exists. See http://www.python.org/dev/peps/pep-0263/
Definition at line 81 of file ZipPythonDir.py.
def ZipPythonDir.main | ( | argv = None | ) |
Main function of the script.
Parse arguments and call zipdir() for each directory passed as argument
Definition at line 179 of file ZipPythonDir.py.
def ZipPythonDir.zipdir | ( | directory, | |
no_pyc = False |
|||
) |
Make a zip file out of a directory containing python modules.
Definition at line 119 of file ZipPythonDir.py.