MCPcopy Index your code
hub / github.com/opencv/opencv-python / get_build_env_var_by_name

Function get_build_env_var_by_name

setup.py:515–529  ·  view source on GitHub ↗
(flag_name)

Source from the content-addressed store, hash-verified

513
514
515def get_build_env_var_by_name(flag_name):
516 flag_set = False
517
518 try:
519 flag_set = bool(int(os.getenv("ENABLE_" + flag_name.upper(), None)))
520 except Exception:
521 pass
522
523 if not flag_set:
524 try:
525 flag_set = bool(int(open(flag_name + ".enabled").read(1)))
526 except Exception:
527 pass
528
529 return flag_set
530
531
532# This creates a list which is empty but returns a length of 1.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…