MCPcopy Create free account
hub / github.com/apache/solr / resolve_gpghome

Function resolve_gpghome

dev-tools/scripts/buildAndPushRelease.py:358–368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356
357
358def resolve_gpghome():
359 for p in [
360 # Linux, macos
361 os.path.join(os.path.expanduser("~"), '.gnupg'),
362 # Windows 10
363 os.path.expandvars(r'%APPDATA%\GnuPG')
364 # TODO: Should we support Cygwin?
365 ]:
366 if os.path.exists(os.path.join(p, 'secring.gpg')):
367 return p
368 return None
369
370
371def main():

Callers 1

mainFunction · 0.85

Calls 2

existsMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…