[Twisted-Python] loading application files from zip files for frozen exes
![](https://secure.gravatar.com/avatar/082d0dd71e2b66e7873ba331f67e53d1.jpg?s=120&d=mm&r=g)
Hi All, When packaging a twisted server implementation with py2exe that uses .tac (.py) files one ends up with a zip file with all the python dependencies (as .pyo bytecode), an .exe and the .tac files in the package directory. To me this seems a bit messy since the distribution is by definition a 'frozen' exe and any changes to the python modules in the zip will require a rebuild. With this limitation in mind I initially wrote several patches to twisted core modules to allow an application to be loaded from a zip file (only .py modules) which i attached to issue 1092 (http://twistedmatrix.com/bugs/issue1092). Upon further reflection I realised that this functionality is only really useful in the case of exes frozen with py2exe and I rewrote my patch to be completely external to the twisted core (code and test modules which i have attached to this mail). Would you consider perhaps inclusion of this in the twisted/scripts directory with a short note in a howto? Regards, Grant M P.S. this allows you to specify: twistd.exe -y <name> where <name> is the python module name without the .py
participants (1)
-
Grant McDonald