FileNotFoundError but file exists
问题 I am creating a Python application that imports many JSON files. The files are in the same folder as the python script's location. Before I moved the entire folder someplace else, the files imported perfectly. Since the script creates a files if none exists, it keeps creating the file in the home directory while ignoring the one in the same folder as it is in. When I specify an absolute path (code below): startT= time() with open('~/Documents/CincoMinutos-master/settings.json', 'a+') as f: f