[Tutor] Detect the folder of a file

Alex Kleider akleider at sonic.net
Tue Apr 26 22:15:28 EDT 2016



On 2016-04-26 16:16, Oliver Bestwalter wrote:

>>>> sys.executable
> '/home/obestwalter/.pyenv/versions/3.4.4/envs/tmp/bin/python3.4'

Not sure if this helps but perhaps:

alex at X301:~/Py$ which python
/usr/bin/python
alex at X301:~/Py$ . venv/bin/activate
(venv)alex at X301:~/Py$ which python
/home/alex/Py/venv/bin/python
(venv)alex at X301:~/Py$

[Ubuntu 14.04 LTS]



More information about the Tutor mailing list