Skip to content

Commit

Permalink
remove require.paths from scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Nov 14, 2011
1 parent e808472 commit 13455c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions benchmark/less-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ var path = require('path'),
fs = require('fs'),
sys = require('sys');

require.paths.unshift(__dirname, path.join(__dirname, '..'));

var less = require('lib/less');
var less = require('../lib/less');
var file = path.join(__dirname, 'benchmark.less');

if (process.argv[2]) { file = path.join(process.cwd(), process.argv[2]) }
Expand Down
4 changes: 1 addition & 3 deletions bin/lessc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ var path = require('path'),
fs = require('fs'),
sys = require('sys');

require.paths.unshift(path.join(__dirname, '..', 'lib'));

var less = require('less');
var less = require('../lib/less');
var args = process.argv.slice(1);
var options = {
compress: false,
Expand Down
4 changes: 1 addition & 3 deletions test/less-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ var path = require('path'),
fs = require('fs'),
sys = require('sys');

require.paths.unshift(__dirname, path.join(__dirname, '..'));

var less = require('lib/less');
var less = require('../lib/less');

less.tree.functions.add = function (a, b) {
return new(less.tree.Dimension)(a.value + b.value);
Expand Down

0 comments on commit 13455c0

Please sign in to comment.