PMS.Database can't connect

Plugin module has no attribute '__databasePath'
Note: I'm using Framework v1

In PMS/Plugin.py, function __run:


Database.__databasePath = "%s/Databases/%s.db" % (supportFilesPath, Identifier)



So the database path is set on the Database module itself.

But in PMS/Database.py, function __loadDB:


  shouldCreate = not os.path.exists(Plugin.__databasePath)<br />
  __db = sqlite3.connect(Plugin.__databasePath)



it looks for that path on the Plugin module.
And it is not found. And it fails.

Am I missing something?
I'm trying to make use of Database.Exec() in my plugin's handlers...

Bump… can someone tell me if Framework provides a standard way to access a plugin-specific sqlite db?

Sorry I missed this one first time round :slight_smile: That looks like a framework bug, probably introduced during refactoring between v0 and v1. I’ll get a fix deployed soon.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.