MCPcopy Index your code
hub / github.com/bleachbit/bleachbit / assert_exist

Function assert_exist

windows/setup.py:111–119  ·  view source on GitHub ↗

Check if a path exists If not, log an error and exit.

(path, msg=None)

Source from the content-addressed store, hash-verified

109
110
111def assert_exist(path, msg=None):
112 """Check if a path exists
113
114 If not, log an error and exit."""
115 if not os.path.exists(path):
116 logger.error('%s not found', path)
117 if msg:
118 logger.error(msg)
119 sys.exit(1)
120
121
122def check_exist(path, msg=None):

Callers 5

archiveFunction · 0.85
environment_checkFunction · 0.85
buildFunction · 0.85
recompress_libraryFunction · 0.85
nsisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected