(value)
| 863 | |
| 864 | # Validate file existence for user-provided arguments |
| 865 | def check_file_exists(value): |
| 866 | if not os.path.isfile(value): |
| 867 | raise argparse.ArgumentTypeError('File \'%s\' does not exist.' % value) |
| 868 | |
| 869 | return value |
| 870 | |
| 871 | |
| 872 | # Validate file existence for definitions file |
nothing calls this directly
no outgoing calls
no test coverage detected