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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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