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
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog


_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to