#!/usr/bin/env narwhal var FILE = require("file"); var cappuccinoPackage = FILE.path(module.path).dirname().dirname(); var mainPath = cappuccinoPackage.join("lib", FILE.basename(module.path), "main.j"); var frameworksPath = cappuccinoPackage.join("Frameworks"); // TODO: is specifying the Frameworks necessary? system.args.splice(1, 0, "-I"+frameworksPath, String(mainPath)); // HACK: remove use of SELF_HOME from capp gen system.env["SELF_HOME"] = cappuccinoPackage; require("objective-j").run(system.args);