Created
April 10, 2020 15:58
-
-
Save cirrusUK/9ecb5e7ee716d4afc43c26d4c501e532 to your computer and use it in GitHub Desktop.
show if virtualenv is activated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
if os.getenv('VIRTUAL_ENV'): | |
print('Virtualenv Is Active') | |
else: | |
print('Virtualenv Is Not Active') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment