pub fn is_virtualenv_executable(executable: impl AsRef<Path>) -> boolExpand description
Checks if the grandparent directory of the given executable is the base of a virtual environment.
The procedure described in PEP 405 includes checking both the parent and grandparent directory of an executable, but in practice we’ve found this to be unnecessary.