Message12866
It now behaves (locally) like this (with one -v given):
>>> import sys
>>> sys.path[:0] = ["hyv\xe4"]
>>> import csv
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG import csv # precompiled from ...\dist\Lib\csv$py.class
org.python.import CONFIG import _csv # builtin org.python.modules._csv._csv
org.python.import CONFIG import cStringIO # builtin org.python.modules.cStringIO
And for a non-existent package:
>>> import zzz
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG import encodings.gbk # precompiled from C:\Users\Jeff\Documents\Eclipse\jython-trunk\dist\Lib\encodings\gbk$py.class
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named zzz
A couple of these are actually in the nested import of my console encoding, but it just shows how many times we use consult sys.path. |
|
Date |
User |
Action |
Args |
2019-12-21 19:48:28 | jeff.allen | set | messageid: <1576957708.54.0.916279969156.issue2820@roundup.psfhosted.org> |
2019-12-21 19:48:28 | jeff.allen | set | recipients:
+ jeff.allen, pekka.klarck |
2019-12-21 19:48:28 | jeff.allen | link | issue2820 messages |
2019-12-21 19:48:28 | jeff.allen | create | |
|