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']
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) " python38. zip', '/usr/lib/ python3. 8', '/usr/lib/ python3. 8/lib-dynload' , '/usr/local/ lib/python3. 8/dist- packages' , '/usr/lib/ python3/ dist-packages' ]
['', '/usr/lib/