[go: up one dir, main page]

is_virtualenv_executable

Function is_virtualenv_executable 

Source
pub fn is_virtualenv_executable(executable: impl AsRef<Path>) -> bool
Expand 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.