Fixed reading nojump_matrices from non-writable directories

This commit is contained in:
Sebastian Kloth 2024-02-06 13:29:38 +01:00
parent befaef2dfa
commit 37bf496b21

View File

@ -152,7 +152,7 @@ def nojump_load_filename(reader: BaseReader):
)
if os.path.exists(full_path_fallback):
return full_path_fallback
if os.path.exists(fname) or is_writeable(directory):
if os.path.exists(full_path) or is_writeable(directory):
return full_path
else:
user_data_dir = os.path.join("/data/", os.environ["HOME"].split("/")[-1])