Why does importing psyco work when I call my script directly, but when I call it from a bash script it fails???
test.sh:
while true
do
python test.py;
sleep 10;
done
test.py:
try:
import psyco
print "Got psyco!"
except ImportError:
print "No psyco."
And now...
> python test.py
"Got psyco!"
> ./test.sh
"No psyco."
"No psyco."
...