Christian Heimes added the comment:
Meh, Python 2.6 from SL4A (scripting languages for Android) doesn't have
os.confstr(). I just tried it in a Android 2.3.3 emulator. Python 2.6 on Linux
has the function. I propose we fall back to PATH env and use /bin as last
resort.
try:
cspath = confstr("CS_PATH")
except (ValueError, NameError):
# installation doesn't have confstr() or doesn't know about CS_PATH
# fall back to PATH environ and use /bin as last resort
cspath = environ.get("PATH", "/bin")
for path in cspath.split(pathsep):
...
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com