fix https://www.logilab.net/cwo/ticket/481727 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 23 Nov 2009 16:18:13 +0100
branchstable
changeset 3901 d197c07dcfe5
parent 3900 a26f50cb7e70
child 3902 a0efb0326021
fix https://www.logilab.net/cwo/ticket/481727 the pb lies more in sqlite library, since it's fixed by opening the sqlite database using an absolute path.
devtools/__init__.py
--- a/devtools/__init__.py	Mon Nov 23 16:16:58 2009 +0100
+++ b/devtools/__init__.py	Mon Nov 23 16:18:13 2009 +0100
@@ -338,6 +338,7 @@
     import shutil
     # remove database file if it exists (actually I know driver == 'sqlite' :)
     dbfile = source['system']['db-name']
+    source['system']['db-name'] = os.path.abspath(dbfile)
     cleanup_sqlite(dbfile)
     template = '%s-template' % dbfile
     if exists(template):