Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vector35/binaryninja-api
/ check_virtual_environment
Function
check_virtual_environment
scripts/install_api.py:36–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
35
36
def
check_virtual_environment() -> bool:
37
if
sys.prefix != sys.base_prefix:
38
if
os.environ.get(
"VIRTUAL_ENV"
):
39
return
True
40
return
False
41
42
43
def
getsitepackage() -> str:
Callers
1
install
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected