fxconv: fix bad detection of fxconv-metadata.txt for relative paths

This commit is contained in:
Lephenixnoir 2022-11-05 18:44:33 +01:00
parent 1a443454c9
commit 8c966821e8
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 1 deletions

View File

@ -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")