MCPcopy Create free account
hub / github.com/bitsadmin/wesng / check_definitions_exists

Function check_definitions_exists

wes.py:873–877  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

871
872# Validate file existence for definitions file
873def check_definitions_exists(value):
874 if not os.path.isfile(value):
875 raise argparse.ArgumentTypeError('Definitions file \'%s\' does not exist. Try running %s --update first.' % (value, FILENAME))
876
877 return value
878
879
880# Specify arguments using for the argparse library

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected