Comment 2 for bug 1919949

Revision history for this message
Joe Guo (guoqiao) wrote :

Hi Alex,

Thanks for the feedback, code changed to the suggested pattern.

Re: why insert at 1 instead of 0, I think it's because 0 is normally current dir, which should always have highest priority. E.g:

python3 -c "import sys;print(sys.path)"
['', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']