mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 22:47:04 +00:00
23 lines
664 B
JavaScript
23 lines
664 B
JavaScript
|
|
makeExportsGlobal();
|
|
|
|
var rootNode = new StaticResourceNode("", null, StaticResourceNode.DirectoryType, YES),
|
|
cwd = FILE.cwd();
|
|
|
|
rootNode.nodeAtSubPath(FILE.dirname(cwd), YES);
|
|
rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode)
|
|
{
|
|
var includePaths = exports.includePaths(),
|
|
index = 0,
|
|
count = includePaths.length;
|
|
|
|
for (; index < count; ++index)
|
|
cwdNode.nodeAtSubPath(FILE.normal(includePaths[index]), YES);
|
|
#ifndef RHINO
|
|
fileImporterForPath(FILE.join(cwd, "main.j"))("main.j", YES, function()
|
|
{
|
|
console.log(rootNode.toString(true));
|
|
console.log("done.");
|
|
});
|
|
#endif
|
|
}); |