Skip to content

Commit

Permalink
Merge pull request #283 from everyevery/fix_window_absolute_path_error
Browse files Browse the repository at this point in the history
fix db opening error with absolute path on windows
  • Loading branch information
Dane Springmeyer committed Apr 30, 2014
2 parents b3cbf17 + 8323332 commit 07ba0d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/sqlite3.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ sqlite3.cached = {
return new Database(file, a, b);
}

if (file[0] !== '/') {
file = path.join(process.cwd(), file);
}
file = path.resolve(file);

if (!sqlite3.cached.objects[file]) {
var db =sqlite3.cached.objects[file] = new Database(file, a, b);
Expand Down

0 comments on commit 07ba0d3

Please sign in to comment.