def orig_py_exe(exe):  
try:<EOL><INDENT>prefix_script = '<STR_LIT>'<EOL>_, prefix, _ = cmd_output(exe, '<STR_LIT:-c>', prefix_script)<EOL>prefix = prefix.strip()<EOL><DEDENT>except CalledProcessError:<EOL><INDENT>return exe<EOL><DEDENT>if os.name == '<STR_LIT>':<EOL><INDENT>expected = os.path.join(prefix, '<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>expected = os.path.join(prefix, '<STR_LIT>', os.path.basename(exe))<EOL><DEDENT>if os.path.exists(expected):<EOL><INDENT>return expected<EOL><DEDENT>else:<EOL><INDENT>return exe<EOL><DEDENT>
A -mvenv virtualenv made from a -mvirtualenv virtualenv installs
    packages to the incorrect location.  Attempt to find the _original_ exe
    and invoke `-mvenv` from there.

    See:
    - https://github.com/pre-commit/pre-commit/issues/755
    - https://github.com/pypa/virtualenv/issues/1095
    - https://bugs.python.org/issue30811