##// END OF EJS Templates
compare realpath in init_virtualenv...
MinRK -
Show More
@@ -716,7 +716,9 b' class InteractiveShell(SingletonConfigurable):'
716 # Not in a virtualenv
716 # Not in a virtualenv
717 return
717 return
718
718
719 if sys.executable.startswith(os.environ['VIRTUAL_ENV']):
719 if os.path.realpath(sys.executable).startswith(
720 os.path.realpath(os.environ['VIRTUAL_ENV'])
721 ):
720 # Running properly in the virtualenv, don't need to do anything
722 # Running properly in the virtualenv, don't need to do anything
721 return
723 return
722
724
General Comments 0
You need to be logged in to leave comments. Login now