Skip to content

Commit

Permalink
make loading also work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritslamers committed Jun 5, 2014
1 parent 9be1b5f commit a76f920
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ Sproutnode config
*/

//var fws = ["frameworks/runtime", "frameworks/core_foundation"];
var fws = ["frameworks/bootstrap", "frameworks/runtime", "frameworks/core_foundation"].map(function (f) { return pathlib.join(curdir, '..', f); });
var fws = ["bootstrap", "runtime", "core_foundation"].map(function (f) {
return pathlib.join(curdir, '..', "frameworks", f);
});
var dirsToSkip = ["tests", "views", "panes", "protocols", "child_view_layouts", "debug"];
var skipFiles = [
"frameworks/core_foundation/system/color.js",
"frameworks/core_foundation/system/core_query.js"
pathlib.join("frameworks", "core_foundation", "system", "color.js"),
pathlib.join("frameworks", "core_foundation", "system", "core_query.js")
];

var fileInSkipFiles = function (f) {
Expand Down Expand Up @@ -419,7 +421,7 @@ var startUp = function () {
runInContext("var window = this;", "lib/index.js#startUp");
//loadFile(pathlib.join(__dirname, 'jquery_node.js'));
fws.forEach(loadFramework);
loadFile(pathlib.join(curdir, '..', 'frameworks/foundation/system/benchmark.js'));
loadFile(pathlib.join(curdir, '..', 'frameworks','foundation', 'system', 'benchmark.js'));
//util.log("filesLoaded: " + util.inspect(filesLoadedInContext));
};

Expand Down

0 comments on commit a76f920

Please sign in to comment.