python-archive
python-archive copied to clipboard
Toolify
Hi this pull-request contains two changes. Both are motivated by the need "package/bundle" the module with a different stand-alone tool (see waf build-system).
Basically waf works by creating a self-extracting binary, with all the python code it needs bundled inside.
Two things happen:
- All comments are stripped. This does not work with python-archive since it defines the exception classes with only a doc string. Leading to a syntax error when those doc strings are removed. Therefore I've added the
passstatement. - The module gets relocated, there for the absolute import does not work, and we need to do a relative import.
Hope this could be accepted :)
Thanks for a nice module - all the best!