>> Nir Aides wrote: >>> Is there a solution or a work around for the sys.path problem with >>> unicode folder names on Windows XP? >>> >>> I need to be able to import modules from a folder with a non-ascii name.
> Martin v. Löwis wrote: >> If the name is restricted to the CP_ACP code page (i.e. more than >> ASCII, less then full Unicode), using the "mbcs" encoding should work >> fine. Regards, Martin Nir Aides: > I can not restrict the name to CP_ACP. > I am interested in the general case of Unicode. > Windows XP is a native Unicode OS. Python internally converts unicode entries on sys.path to strings before using them. Changing that would require a large rewrite of the import machinery. I once started to work on a patch, but got ZERO feedback, so I gave up. Thomas -- http://mail.python.org/mailman/listinfo/python-list