Skip to content

Commit

Permalink
Try getting project/issue path correct for nodester
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hirtle committed Feb 24, 2012
1 parent 5122b84 commit 8604887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/issueDao.js
Expand Up @@ -5,7 +5,7 @@ var fs = require('fs'),
var issueDao = (function () {

function getIssueFileFromProject(project) {
return process.cwd() + '/db/' + project.slug + '.json';
return __dirname + '/../db/' + project.slug + '.json';
}

var issues = {};
Expand Down
2 changes: 1 addition & 1 deletion lib/projectDao.js
Expand Up @@ -6,7 +6,7 @@ var projectDao = (function () {

var FILENAME = 'projects';

var projectsFile = process.cwd() + '/db/' + FILENAME + '.json';
var projectsFile = __dirname + '/../db/' + FILENAME + '.json';
var projects = load() || {};

function load() {
Expand Down

0 comments on commit 8604887

Please sign in to comment.