Traceback oddity
Dale Strickland-Clark
dale at riverhall.NOTHANKS.co.uk
Fri Oct 19 12:42:10 EDT 2001
"Emile van Sebille" <emile at fenx.com> wrote:
>I expect you've played with sys.path. Consider, eg:
>
>>>> os.__file__
>'f:\\python21\\lib\\os.pyc'
>>>> sys.path.insert(0,'f:\\Python21\\Lib')
>>>> reload(os)
><module 'os' from 'f:\Python21\Lib\os.pyc'>
>>>> os.__file__
>'f:\\Python21\\Lib\\os.pyc'
>>>>
>
>Check to see if duplicate versions of the same directory are in sys.path,
>then back track where they were added.
>
Checked. sys.path wasn't being changed directly but was being set from
the pythonpath environment variable. However, no duplicates.
--
Dale Strickland-Clark
Riverhall Systems Ltd
More information about the Python-list
mailing list