Guido van Rossum wrote:
Would it be hard to tweak Python into always using absolute search paths during module import ?
I resist doing this *in general* because absolute paths don't always mean the right thing on all platforms (and aren't always obtainable), but I agree that for Windows this can and should be done.
I have only run into the problem with Win95, so yes, doing this for Windows only should be OK (and even there it's probably only needed for importing PYD files).
The easiest way I can think of is for PC/getpathp.py to tweak the path entries to be absolute pathnames. A single getcwd() call should suffice.
I'd rather keep the changes in dynload_win.c if that's possible.