Permalink
Browse files

Make the builder work regardless of the CWD.

  • Loading branch information...
creationix committed Feb 4, 2010
1 parent 59e1b02 commit dad8c368dc7d6d469dc71a14a98becb959846d05
Showing with 6 additions and 4 deletions.
  1. +5 −4 build.js
  2. +1 −0 builder.js
View
@@ -1,14 +1,15 @@
// Load some libraries
+require.paths.unshift(__dirname);
var Haml = require('./vendor/haml'),
Markdown = require('./vendor/markdown'),
md5 = require('./vendor/md5').md5,
File = require('file'),
Posix = require('posix');
-var ARTICLE_DIR = 'data/articles',
- AUTHOR_DIR = 'data/authors',
- SKIN_DIR = 'data/skin',
- PUBLIC_DIR = 'public';
+var ARTICLE_DIR = __dirname + '/data/articles',
+ AUTHOR_DIR = __dirname + '/data/authors',
+ SKIN_DIR = __dirname + '/data/skin',
+ PUBLIC_DIR = __dirname + '/public';
var articles, authors;
View
@@ -1,3 +1,4 @@
+require.paths.unshift(__dirname);
var QueryString = require('querystring'),
Http = require('http'),
Build = require('./build');

0 comments on commit dad8c36

Please sign in to comment.