From: Thomas H. <th...@ct...> - 2013-11-28 16:00:02
|
BTW: Please post the answers to the mailing list! Am 28.11.2013 14:47, schrieb goat: > >> Interesting idea. For executables; but this cannot be used for dlls... > > It is possible to retrieve the literal path of a DLL regardless of the > exe it is attached to. Sure, but it is at least *not nice* to change the current directory of an exe from a dll when it is loaded. > I have to test the functionality around, not 100% > of the calls to perform. Would also need to detect whether the code is > called as an exe or a DLL, nothing too hard either. > > I'm going to try and implement these fixes and submit a new patch > somewhere around tonight or tomorrow morning. > > Apparently you can set the environment variable PYTHONIOENCODING before > calling Py_Initialize(), I'll give it a look as well. > Thomas |