merged tanob's fix for installing outside of /usr/local without a /bin

This commit is contained in:
Jeremy Ashkenas
2010-03-31 21:30:14 -04:00
parent 0410748e2d
commit f86fca2739
3 changed files with 9 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ exports.nodes: (code) ->
# setting `__filename`, `__dirname`, and relative `require()`.
exports.run: ((code, options) ->
module.filename: __filename: options.source
__dirname: path.dirname __filename
__dirname: path.dirname(__filename)
eval exports.compile code, options
)