I am trying to locate/edit a file within AppData. This is what I am doing:
if os.path.isfile(getenv("APPDATA") + "File"):
print("Found file!")
I am then going to open that file
conn = sqlite3.connect(getenv("APPDATA") + "File")
However, it just creates a temp file called RoamingFile
there. Eventhough my file is in the AppData directory. I have played around with permissions with no luck. I can also access it if I go straight to the path eg C:\Users\user\AppData
.
I have hit a brick wall really because I have been trying to solve it/look for answers for hours. - Thanks