MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / get_bool

Function get_bool

scripts/gh_release.py:188–197  ·  view source on GitHub ↗
(name, default=0)

Source from the content-addressed store, hash-verified

186 # Github workflow .yml files can encode them.
187 #
188 def get_bool(name, default=0):
189 v = os.environ.get(name)
190 if v in ('1', 'true'):
191 return 1
192 elif v in ('0', 'false'):
193 return 0
194 elif v is None:
195 return default
196 else:
197 assert 0, f'Bad environ {name=} {v=}'
198 inputs_flavours = get_bool('inputs_flavours', 1)
199 inputs_sdist = get_bool('inputs_sdist')
200 inputs_skeleton = os.environ.get('inputs_skeleton')

Callers 1

buildFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…