def running_under_virtualenv():<EOL>
if hasattr(sys, '<STR_LIT>'):<EOL><INDENT>return True<EOL><DEDENT>elif sys.prefix != getattr(sys, "<STR_LIT>", sys.prefix):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Return True if we're running inside a virtualenv, False otherwise.