Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sqlite permissions problem.
#4
The script is looking into the same directory where it is located. According to this:

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
db_path = os.path.join(BASE_DIR, "data.db")

db = sqlite3.connect(db_path)
I don't know what the installation does, but try to put the database file along with the scirpt
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Sqlite permissions problem. - by feat7 - Jun-11-2017, 02:10 PM
RE: Sqlite permissions problem. - by wavic - Jun-11-2017, 05:31 PM
RE: Sqlite permissions problem. - by feat7 - Jun-12-2017, 11:00 AM
RE: Sqlite permissions problem. - by wavic - Jun-12-2017, 07:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Microsoft Teams Sub-Channel Permissions IamJustAmir 0 344 Jan-25-2024, 05:04 AM
Last Post: IamJustAmir

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020