Browse files

Merge branch 'path_fix' of git://github.com/cehoffman/coffee-script

  • Loading branch information...
2 parents 707cd2d + f7183e6 commit 3feb874b1e1b00a26b6e60ad5da7779ffa74c5a5 @jashkenas jashkenas committed Mar 3, 2010
Showing with 2 additions and 14 deletions.
  1. +1 −7 bin/cake
  2. +1 −7 bin/coffee
View
8 bin/cake
@@ -3,13 +3,7 @@
process.mixin(require('sys'));
var path = require('path');
var fs = require('fs');
-var lib = null;
-
-if (fs.lstatSync(__filename).isSymbolicLink()) {
- lib = path.join(path.dirname(fs.readlinkSync(__filename)), '../lib');
-} else {
- lib = path.join(__dirname, '../lib');
-}
+var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
require.paths.unshift(lib);
require('cake').run();
View
8 bin/coffee
@@ -3,13 +3,7 @@
process.mixin(require('sys'));
var path = require('path');
var fs = require('fs');
-var lib = null;
-
-if (fs.lstatSync(__filename).isSymbolicLink()) {
- lib = path.join(path.dirname(fs.readlinkSync(__filename)), '../lib');
-} else {
- lib = path.join(__dirname, '../lib');
-}
+var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
require.paths.unshift(lib);
require('command_line').run();

0 comments on commit 3feb874

Please sign in to comment.