
Feb. 8, 2010
12:51 p.m.
Nick Coghlan <ncoghlan <at> gmail.com> writes:
The problem is that having '' as the first entry in sys.path currently means "do the import relative to the current directory". Unless we want to change the language semantics so we stick os.getcwd() at the front instead of '', then __file__ is still going to be relative sometimes.
"Changing the language semantics" is actually what I was thinking about :) Do some people actually rely on the fact that changing the current directory will also change the import path? cheers Antoine.