You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a critical point, but for input paths I generally use something like thisextant_file type rather than str.
defextant_file(x):
""" 'Type' for argparse - checks that file exists but does not open. """ifnotos.path.exists(x):
# Argparse uses the ArgumentTypeError to give a rejection message like:# error: argument input: x does not existraiseargparse.ArgumentTypeError("{0} does not exist".format(x))
returnx
Originally posted by @nwiltsie in #88 (comment)
The text was updated successfully, but these errors were encountered: