From 70fe25cf8ce9ee6917edbdff35e045ea02e84ec6 Mon Sep 17 00:00:00 2001 From: Ben West Date: Thu, 14 May 2015 19:48:12 -0700 Subject: moe more debug again --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index b332abf..798e99f 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,8 @@ def is_virtualenv ( ): proc = subprocess.Popen(['which', 'add2virtualenv'], stderr=subprocess.PIPE, stdout=subprocess.PIPE) shell = os.path.dirname(sys.argv[0]) has_venv = proc.poll( ) == 0 - print "shell root shares project root", shell, os.path.dirname(__file__) + print "shell root shares project root", shell, os.path.dirname(__filename__) + print 'huh', sys.argv, has_venv, os.environ, __file__ print 'real_prefix', getattr(sys, 'real_prefix', '??') print "RESULT", proc.poll( ), has_venv, os.environ.get('VIRTUAL_ENV') return os.environ.get('VIRTUAL_ENV', has_venv) -- cgit v1.2.3