From 8c966821e82a0c823b5e195a6ecd038c566729a7 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 5 Nov 2022 18:44:33 +0100 Subject: [PATCH] fxconv: fix bad detection of fxconv-metadata.txt for relative paths --- fxconv/fxconv-main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fxconv/fxconv-main.py b/fxconv/fxconv-main.py index 6954936..7f8e7bb 100755 --- a/fxconv/fxconv-main.py +++ b/fxconv/fxconv-main.py @@ -106,7 +106,8 @@ def main(): # In automatic mode, look for information in fxconv-metadata.txt if mode == "": - metadata_file = os.path.dirname(input) + "/fxconv-metadata.txt" + metadata_file = os.path.join(os.path.dirname(input), + "fxconv-metadata.txt") if not os.path.exists(metadata_file): return err(f"using auto mode but {metadata_file} does not exist")