diff options
author | Richard Beales <[email protected]> | 2013-03-18 07:32:01 +0000 |
---|---|---|
committer | Richard Beales <[email protected]> | 2013-03-18 07:32:01 +0000 |
commit | 7c97d17aaf373339a8bcd917ad59ca6018148f0d (patch) | |
tree | 5a3c04f0f9529be392c1263d3feb75806eb43797 /lib/dojo/_base/configNode.js | |
parent | 70db7424e7068701e60cc5bcdfe8f858be508179 (diff) | |
parent | c670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/dojo/_base/configNode.js')
-rw-r--r-- | lib/dojo/_base/configNode.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/dojo/_base/configNode.js b/lib/dojo/_base/configNode.js index 7cd6f14f9..1866795c1 100644 --- a/lib/dojo/_base/configNode.js +++ b/lib/dojo/_base/configNode.js @@ -1,5 +1,5 @@ exports.config = function(config){ - // summary: + // summary: // This module provides bootstrap configuration for running dojo in node.js // any command line arguments with the load flag are pushed into deps @@ -15,7 +15,7 @@ exports.config = function(config){ var fs = require("fs"); // make sure global require exists - //if (typeof global.require=="undefined") { + //if (typeof global.require=="undefined"){ // global.require= {}; //} @@ -40,12 +40,12 @@ exports.config = function(config){ config.hasCache[p] = hasCache[p]; } - var vm = require('vm'); - + var vm = require('vm'), + path = require('path'); // reset some configuration switches with node-appropriate values var nodeConfig = { - baseUrl: __dirname.match(/(.+)[\/\\]_base$/)[1], + baseUrl: path.dirname(process.argv[1]), commandLineArgs:args, deps:deps, timeout:0, |