This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author upendra-k14
Recipients lorenzogotuned, terry.reedy, upendra-k14
Date 2016-05-24.13:39:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464097174.45.0.574487649529.issue27051@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-05-24 13:39:34upendra-k14setrecipients: + upendra-k14, terry.reedy, lorenzogotuned
2016-05-24 13:39:34upendra-k14setmessageid: <1464097174.45.0.574487649529.issue27051@psf.upfronthosting.co.za>
2016-05-24 13:39:34upendra-k14linkissue27051 messages
2016-05-24 13:39:34upendra-k14create