As noted in #38, matchmaps crashes when the specified input and output directories do not match (most likely because neither is specified and they both default to ./). This PR fixes this behavior by wrapping the offending shutil.copy() call in a try/except block. A message is printed to the user noting that the input and output directories match, and that while this is acceptable, it is not the recommended directory structure.
I have confirmed for all three command-line utilities that there are no unexpected consequences downstream of this behavior.
As noted in #38,
matchmaps
crashes when the specified input and output directories do not match (most likely because neither is specified and they both default to./
). This PR fixes this behavior by wrapping the offendingshutil.copy()
call in atry
/except
block. A message is printed to the user noting that the input and output directories match, and that while this is acceptable, it is not the recommended directory structure.I have confirmed for all three command-line utilities that there are no unexpected consequences downstream of this behavior.