Permalink
Browse files

Merge pull request #49 from TooTallNate/0.5.x-compat

Don't alter `require.paths`.
  • Loading branch information...
2 parents 450368c + a66f12f commit 4a92866821164d34e1e73d2b425423d0fb654d65 @gf3 gf3 committed Dec 5, 2011
Showing with 3 additions and 6 deletions.
  1. +2 −2 lib/compiler.js
  2. +1 −4 lib/irc.js
View
@@ -1,5 +1,5 @@
-var Parser = require( 'parser' )
- , Walker = require( 'walker' )
+var Parser = require( './parser' )
+ , Walker = require( './walker' )
, Compiler = {}
/* ------------------------------ Compiler ------------------------------ */
View
@@ -12,11 +12,8 @@ var path = require( 'path' )
, Compiler
, deps
-require.paths.unshift( path.join( __dirname, '..', 'node_modules' ) )
-require.paths.unshift( path.join( __dirname ) )
-
/* ------------------------------ Init Junk ------------------------------ */
-Compiler = require( 'compiler' )
+Compiler = require( './compiler' )
/* ------------------------------ MISCELLANEOUS ------------------------------ */
function if_exists( data, no_pad, pad_char ) {

0 comments on commit 4a92866

Please sign in to comment.