MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / get_env_bool

Function get_env_bool

scripts/test.py:779–788  ·  view source on GitHub ↗
(name, default=0)

Source from the content-addressed store, hash-verified

777
778
779def get_env_bool(name, default=0):
780 v = os.environ.get(name)
781 if v in ('1', 'true'):
782 return 1
783 elif v in ('0', 'false'):
784 return 0
785 elif v is None:
786 return default
787 else:
788 assert 0, f'Bad environ {name=} {v=}'
789
790def show_help():
791 print(__doc__)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…