mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
merged tanob's fix for installing outside of /usr/local without a /bin
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user