fcinfo: support backup files

This commit is contained in:
tomate44
2020-12-20 09:25:36 +01:00
parent 116b0bae55
commit d320c7bb8d

View File

@@ -213,7 +213,7 @@ if __name__ == '__main__':
print(__doc__)
sys.exit()
if not sys.argv[-1].lower().endswith(".fcstd"):
if not sys.argv[-1].rsplit(".")[-1].lower().startswith("fcstd"):
print(__doc__)
sys.exit()