Closed amitramon closed 7 years ago
Hi @amitramon. Agreed, using the env shebang is more correct! Could you prepare a pull request for this? If not I'll try to get some time next week to fix this.
Hi @Tigge , great. I've just created a pull request.
Hello @Tigge and all,
The scripts, for example
40-convert_to_tcx.py
or40-upload_to_garmin_connect.py
, have#!/usr/bin/python
as their firs line for invoking python.If you run
antfs-cli
inside a python virtual environment this may cause the scripts not to pick the right environment. An example might help me to explain:I installed
antfs-cli
andgarmin_uploader
inside the same python 3 virtual environment. My/usr/bin/python
is python2.7. So when I runantfs-cli
and it invokes the40-upload_to_garmin_connect.py
, the later run under a different python environment (and version) and thus fail to importgarmin_uploader
.The way to correct this, which, IMHO, is the general correct way, is to use
#!/usr/bin/env python
in the scripts. This will use the correct python interpreter with the correct environment.And thanks - this is a great tool.
--- Amit