Created
September 21, 2010 20:10
-
-
Save jrabbit/590438 to your computer and use it in GitHub Desktop.
there are two PIPs
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
| from subprocess import * | |
| import sys | |
| #pip = sys.argv[0] | |
| def is_python(): | |
| pip = Popen(['pip', '--version'], stdout=PIPE).communicate()[0] | |
| if pip[-12:].split() == "(python": | |
| return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment