Upendra Kumar added the comment:
3. Detecting Virtual Environment
Virtual environment can be detected using pip module :
from pip.locations import running_under_virtualenv
if running_under_virtualenv():
#If user provided path for virtual environment, evrything okay
else:
#Prompt for error
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27051>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com