[Python-ideas] [Python-Dev] If you shadow a module in the standard library that IDLE depends on, bad things happen
Terry Reedy
tjreedy at udel.edu
Mon Nov 2 06:14:12 EST 2015
On 11/1/2015 6:22 PM, Greg Ewing wrote:
> It will also break scripts that rely on looking at the
> first element of sys.path to find the directory they
> are running from.
'' is not very informative ;-).
I suspect the full path added in the past, but it is not now.
import os; os.getcwd() works better
--
Terry Jan Reedy
More information about the Python-ideas
mailing list