'./bin/python script.py' will have wrong paths
Created by: siebenkopf
The 'PYTHONSTARTUP'
hook:
https://github.com/bioidiap/bob.buildout/blob/master/bob/buildout/python.py#L66
to get the paths right that we have established in the ./bin/python
script only works for interactive shells:
https://docs.python.org/2/tutorial/interactive.html?highlight=pythonstartup#id1
Hence, it has no effect, when you run a script.py
in the current directory, which requires the setup of the system:
$ ./bin/python script.py
However, you can get things right, when you
import pkg_resources
as the first line in script.py
.
I am not sure if we need to take any action for this. I opened this bug mainly to keep track of this issue.