replace path interpolation with os.path.join or pathlib
around the code it's full of stuff like CONFIG_FILE = "/../data/downloads.toml"
.
All of these instances should be changed to either strings mangled by os.path
(in particular os.path.join()
) or, possibly better pathlib
's Path
objects.