Skip to content

Commit

Permalink
Fixes issue #55 require.paths usage exception in nodejs v 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
j-o-r committed Aug 6, 2011
1 parent 9bfe167 commit 13e2eaf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/cli.js
Expand Up @@ -17,16 +17,15 @@
*
*/

require.paths.push(__dirname + '/../lib');

var args = process.argv.slice(2)
, lib_path = __dirname + '/../lib/'
, fs = require('fs')
, sys = require('sys')
, jake = require('jake')
, api = require('api')
, Program = require('program.js').Program
, jake = require(lib_path + 'jake.js')
, api = require(lib_path + 'api.js')
, Program = require(lib_path + 'program.js').Program
, program = new Program()
, Loader = require('loader.js').Loader
, Loader = require(lib_path + 'loader.js').Loader
, loader = new Loader()
, pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json').toString())
, opts
Expand Down

0 comments on commit 13e2eaf

Please sign in to comment.