Remove unneccessary validator for --export_dir

X-DeepSpeech: NOBUILD
This commit is contained in:
Reuben Morais 2019-07-22 14:19:19 +00:00 committed by GitHub
parent 9da99d74e4
commit 84e1fa98b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,8 +133,3 @@ def create_flags():
f.register_validator('one_shot_infer',
lambda value: not value or os.path.isfile(value),
message='The file pointed to by --one_shot_infer must exist and be readable.')
f.register_validator('export_dir',
lambda value: not value or os.path.isdir(value),
message='The path pointed to by --export_dir must exist and be a directory.')