Currently, sys.builtin_module_names is set in IronPython.Runtime.SystemState.LoadBuiltins. But this method is called multiple times with assemblies, by default IronPython.dll and IronPython.Modules.dll.
Doesn't this belog to InitializeBuiltins method, after Builtins dictionary is complete? Especially, renaming nt to posix happens after builtin_module_names is set, so this change isn't reflected there. And since os.py in the standard library uses builtin_module_names to detect platform, os.py is broken on Unix. Here's my suggested fix: https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/latest/patch-initialize-builtins -- Seo Sanghyeon _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
