Running download-from-s3.py with python3 before the script name works but I would like to be able to run the file without it.
[nir test]$ ./test-download-from-s3.sh
../download-from-s3.py: line 2: import: command not found
../download-from-s3.py: line 3: import: command not found
[nir test]$ cat ./test-download-from-s3.sh
#!/bin/bash
. ../download-from-s3.py
I tried to put two different headers in download-from-s3.py, #!/usr/bin/env python3 and #!/usr/bin/python3.
Neither worked.