From 3ef26c71cb3c23a876b95af77f6541c06227a937 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 3 Oct 2010 14:49:16 +0200 Subject: acc fixes, closed #134, closed #141 --- module/FileDatabase.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/FileDatabase.py') diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 4f1c1a541..793a4a69e 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -20,7 +20,6 @@ from Queue import Queue from os import remove from os.path import exists from shutil import move -import sqlite3 from threading import Lock from threading import RLock from threading import Thread @@ -33,6 +32,10 @@ from module.PullEvents import ReloadAllEvent from module.PullEvents import RemoveEvent from module.PullEvents import UpdateEvent +try: + from pysqlite2 import dbapi2 as sqlite3 +except: + import sqlite3 DB_VERSION = 2 -- cgit v1.2.3