I've got a simple Python program which has the correct Shebang line to start with:
#!/usr/bin/env python
from __future__ import division
import math
etc.
When I run the file with python
before it, it works like a charm:
$ python current_steer.py
works perfect!
But when I run the same program using the dot slash notation, I get this:
$ ./current_steer.py
: No such file or directory
$
I'm 100% sure the file name is correct. I copy pasted it and also had it finish using tab. All other Python scripts I've got are running fine using the dot slash notation so I have no idea why this wouldn't work.
I'm running this on a Raspberry Pi with an up to date Raspbian install.
Does anybody know why this one specific script wouldn't run using the dot-slash notation? All tips are welcome!