Vajrasky Kok added the comment:

This is the "emergency" patch to solve this issue.

The main issue is,

[sky@localhost cpython]$ ./python -Sc "import sys; print(sys.path)"
['', '/usr/local/lib/python34.zip', 
'/home/sky/Code/python/programming_language/cpython/Lib/', 
'/home/sky/Code/python/programming_language/cpython/Lib/plat-linux', 
'/home/sky/Code/python/programming_language/cpython/build/lib.linux-x86_64-3.4-pydebug']
[sky@localhost cpython]$ ./python -c "import sys; print(sys.path)"
['', '/usr/local/lib/python34.zip', 
'/home/sky/Code/python/programming_language/cpython/Lib', 
'/home/sky/Code/python/programming_language/cpython/Lib/plat-linux', 
'/home/sky/Code/python/programming_language/cpython/build/lib.linux-x86_64-3.4-pydebug',
 '/home/sky/.local/lib/python3.4/site-packages']

Let me "zoom" it for you.

[sky@localhost cpython]$ ./python -Sc "import sys; print(sys.path[2])"
/home/sky/Code/python/programming_language/cpython/Lib/
[sky@localhost cpython]$ ./python -c "import sys; print(sys.path[2])"
/home/sky/Code/python/programming_language/cpython/Lib

The "extra" slash is the culprit. I need to investigate whether this is 
deliberate or not.

----------
keywords: +patch
nosy: +vajrasky
Added file: 
http://bugs.python.org/file32366/emergency_patch_for_test_trace.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19398>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to