os.path.dirname() returns an empty string if the filename argument has directory component. os.path.exists() fails to find an empty path, so when doing SqliteDict("foo.db") you get an exception.
This commit changes the sanity check to support a filename without an explicit path component.
os.path.dirname() returns an empty string if the filename argument has directory component. os.path.exists() fails to find an empty path, so when doing SqliteDict("foo.db") you get an exception.
This commit changes the sanity check to support a filename without an explicit path component.