[IronPython] os Module in programs compiled with pyc
Orestis Markou
orestis at resolversystems.com
Fri Jan 16 11:19:29 CET 2009
The sys module is special as it's built-in, whereas os is just a python
module. Try importing other modules such as shutil or unittest to see if
the plain standard library works.
IronPython doesn't compile the standard library for you - it ships with
it as normal python source, when installed from the msi. I thought that
it would add its Lib to sys.path but I may be wrong. Try printing
sys.path and see if there is any indication of this.
Orestis
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.
>
> Any idea ?
>
> Thanks.
>
> --
> Renaud Durand
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
Orestis Markou
Software Engineer,
Resolver Systems Ltd.
orestis at resolversystems.com
+44 (0) 20 7253 6372
More information about the Ironpython-users
mailing list