Message7045

Author jjaggars
Recipients jjaggars
Date 2012-04-11.17:18:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334164683.62.0.22197373232.issue1874@psf.upfronthosting.co.za>
In-reply-to
Content
[jhjaggars ~]$ cd jython2.5.3b1/
[jhjaggars jython2.5.3b1]$ cat ~/bin/turkish.sh 
if [ "$LANG" == "tr_TR.UTF-8" ]; then
    echo "switching to english"
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
else
    echo "switching to turkish"
    export LC_ALL=tr_TR.UTF-8
    export LANG=tr_TR.UTF-8
fi
[jhjaggars jython2.5.3b1]$ source ~/bin/turkish.sh 
switching to turkish
[jhjaggars jython2.5.3b1]$ java -jar jython.jar 
Jython 2.5.3b1 (2.5:5fa0a5810b25, Feb 22 2012, 12:39:02) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_31
>>> import os
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jhjaggars/jython2.5.3b1/jython.jar/Lib/os.py", line 118, in <module>
ImportError: no os specific module found
>>> 

Changing os.py to print out sys.builtin_module_names yields the following tuple:

('sys', 'imp', 'gc', 'jffi', '_sre', '_threading', '_csv', 'exceptions', 'time', '_py_compile', 'struct', 'zipimport', '_functools', 'thread', 'ucnhash', 'synchronize', 'binascii', '_codecs', '_random', '_systemrestart', 'cmath', '_marshal', 'cStringIO', 'pos\u0131x', '_ast', 'operator', 'jarray', 'math', '_collections', 'errno', '_hashlib', '__builtin__', '_weakref', 'itertools', 'cPickle', 'array')

Note that 'posix' is actually 'pos\u0131x'.
History
Date User Action Args
2012-04-11 17:18:03jjaggarssetrecipients: + jjaggars
2012-04-11 17:18:03jjaggarssetmessageid: <1334164683.62.0.22197373232.issue1874@psf.upfronthosting.co.za>
2012-04-11 17:18:03jjaggarslinkissue1874 messages
2012-04-11 17:18:02jjaggarscreate