HELP: Cannot use freeze.py on program importing 4Suite
Ben Chang
bchang at confer.com
Mon Nov 13 21:37:04 EST 2000
No, this won't work. Because, the 4Suite has its own loader
"_4dom_fileImport",
which looks for the module in the file system, loads it, and assigns it to a
local variable
Element = implementation._4dom_fileImport('Element').Element
Even if I add the "import xyz", the "compiled" .exe still looks for a 4Dom
module
in the file system when running the above code and fails because there is no
such
module in the file system when I ship the .exe file. So, how can I modify
the
"_4dom_fileImport" to diable the loading?
Ben
"Andrew Dalke" <dalke at acm.org> wrote in message
news:8ukcdt$kpp$1 at slb7.atl.mindspring.net...
> Ben Chang:
> >It seems that the "C:\Program Files\Python\xml\dom\__init__.py" file
> >play some trick to load the en_US.py file on it's own, and therefore
> >fools the module analysis of Freeze.py. Does anyone know how to fix
> >this problem?
>
> This isn't a fix; merely a workaround. Put a "from xml.dom import en_US"
> in your code so that Freeze will know to include it. And hope that
> whoever uses your code doesn't need a different locale, which is what
> I assume that code is doing.
>
> Andrew
>
>
>
>
More information about the Python-list
mailing list