lib/kit/db_sqlite3.rb in kit-0.0.3 vs lib/kit/db_sqlite3.rb in kit-0.0.4
- old
+ new
@@ -27,9 +27,15 @@
class Backend < Kit
include SQLite3Tools
def initialize db_paths
+
+ db_paths.each do |key, p|
+ dir = File.dirname p
+ db_paths[key] = @@kit_path + p if dir == "."
+ end
+
dbs = db_prepare db_paths
@info_db = dbs[:info]
@action_db = dbs[:actions]
end