diff options
author | Ben West <bewest@gmail.com> | 2015-05-14 19:48:12 -0700 |
---|---|---|
committer | Ben West <bewest@gmail.com> | 2015-05-14 19:48:12 -0700 |
commit | 70fe25cf8ce9ee6917edbdff35e045ea02e84ec6 (patch) | |
tree | 8bcdc09db3f0f4091995acd12555e7d41aa0fdac /setup.py | |
parent | b2b986fc71982fcafe9e6aff66ccf9497782a63c (diff) |
moe more debug again
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,7 +10,8 @@ def is_virtualenv ( ): | |||
10 | proc = subprocess.Popen(['which', 'add2virtualenv'], stderr=subprocess.PIPE, stdout=subprocess.PIPE) | 10 | proc = subprocess.Popen(['which', 'add2virtualenv'], stderr=subprocess.PIPE, stdout=subprocess.PIPE) |
11 | shell = os.path.dirname(sys.argv[0]) | 11 | shell = os.path.dirname(sys.argv[0]) |
12 | has_venv = proc.poll( ) == 0 | 12 | has_venv = proc.poll( ) == 0 |
13 | print "shell root shares project root", shell, os.path.dirname(__file__) | 13 | print "shell root shares project root", shell, os.path.dirname(__filename__) |
14 | print 'huh', sys.argv, has_venv, os.environ, __file__ | ||
14 | print 'real_prefix', getattr(sys, 'real_prefix', '??') | 15 | print 'real_prefix', getattr(sys, 'real_prefix', '??') |
15 | print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') | 16 | print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') |
16 | return os.environ.get('VIRTUAL_ENV', has_venv) | 17 | return os.environ.get('VIRTUAL_ENV', has_venv) |