Account for more spaces and Windows paths. This fixes #456.

pull/459/head
Chad Weider 2012-02-16 14:15:24 -08:00
parent 9ca914f8cd
commit 1063a3d036
2 changed files with 5 additions and 3 deletions

View File

@ -15,8 +15,10 @@
*/
var RequireKernel = require('require-kernel/');
var path = require('path');
var CLIENT_JS_SRC = __dirname + '/../../static/js/';
var client_require = RequireKernel.requireForPaths('file://' + CLIENT_JS_SRC);
var CLIENT_JS_SRC = path.normalize(__dirname + '/../../static/js/');
var client_require = RequireKernel.requireForPaths(
'file://' + (CLIENT_JS_SRC.charAt(0) == '/' ? '' : '/') + encodeURI(CLIENT_JS_SRC));
exports.require = client_require;

View File

@ -10,7 +10,7 @@
"name": "Robin Buse" }
],
"dependencies" : {
"require-kernel" : "1.0.2",
"require-kernel" : "1.0.3",
"socket.io" : "0.8.7",
"ueberDB" : "0.1.7",
"async" : "0.1.15",