[IronPython] os Module in programs compiled with pyc
Michael Foord
fuzzyman at voidspace.org.uk
Fri Jan 16 11:24:00 CET 2009
Renaud Durand wrote:
> Hi all,
>
> I have several issues but I will respect the 1 problem/1 thread rule.
>
> My exe file is in a folder with all required DLLs. When I'm trying to
> import the os module I get this:
>
> > Unhandled Exception: IronPython.Runtime.Exceptions.ImportException:
> No module named os
>
> It works fine with other "Standard python library" modules like 'sys'.
> Are'nt all the modules in IronPython/Lib folder included in IronPython
> DLLs ?
> Currently I am using a workaround compiling the os module with my
> program and it works.
>
That's the correct solution not a workaround. Pyc doesn't compile
standard library modules unless you tell it to. As Orestis says, sys is
an oddity being a built-in module.
Michael
> Any idea ?
>
> Thanks.
>
> --
> Renaud Durand
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list