Message174962
| Author |
christian.heimes |
| Recipients |
asvetlov, chris.jerdonek, christian.heimes, eric.araujo, ezio.melotti, gregory.p.smith, lyapun, neologix, pitrou, r.david.murray, tim.golden |
| Date |
2012年11月06日.13:35:57 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1352208958.38.0.458731843672.issue16353@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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):
... |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年11月06日 13:35:58 | christian.heimes | set | recipients:
+ christian.heimes, gregory.p.smith, pitrou, tim.golden, ezio.melotti, eric.araujo, r.david.murray, asvetlov, chris.jerdonek, neologix, lyapun |
| 2012年11月06日 13:35:58 | christian.heimes | set | messageid: <1352208958.38.0.458731843672.issue16353@psf.upfronthosting.co.za> |
| 2012年11月06日 13:35:58 | christian.heimes | link | issue16353 messages |
| 2012年11月06日 13:35:57 | christian.heimes | create |
|