diff options
-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) |