Is there actually a way of doing this? I've tried using the following code:
file_path = os.environ['APPDATA'] + "\\Example\\example.db"
sqlite3.connect(file_path)
But it comes up with an error. My only thought would be that it's permissions-related, but if that was the case, then I probably wouldn't create a file there, either... I'm stumped. Anyone got any idea?
os.path.join
:dir_path = os.path.join(os.environ['APPDATA'], 'Example')
. – Visit