[Tutor] Detect the folder of a file

Kanika Murarka murarkakanika at gmail.com
Tue Apr 26 09:47:19 EDT 2016


Hi,
I want to detect whether a 'file1.py' belongs to virtual environment
folder( generally 'venv') or not ( considering different people may have
different names for virtual environment folder.).

I am able to detect it on my machine, but how to make it generalized. I am
not getting anything on Internet. :(

Thank You


More information about the Tutor mailing list