When I run python deamon.py
, the test suite runs properly; however, when I run it with /usr/bin/python
it throws a warning for a Casper.waitfor()
timeout as it apparently can't read the DOM elements.
// Fails:
/usr/bin/python /path_to_deals/deals/deamon.py
// Succeeds:
python /path_to_deals/deals/deamon.py
Below is the directory structure:
deals/
deamon.py test.js
deamon.py
is the script which initiates the casperjs
test suite in the test.js
file.
Can any one explain why python
works but /usr/bin/python
does not -- and how I might fix this?
Update from discussion: "When I do python deamon.py
it fails only when I put it in a Cron (where I have to specify the exact python path as well as the script path)."