pufuwozu/roy — Issue #64: Add support for calling roy from any place
Author: folone
Created: 2011-12-08 08:53:53+00:00
State: open

Would like to do such a thing:
I add an env variable `$ROY_HOME`, pointing to the directory, where roy is compiled and add it to `$PATH`. If I execute `roy` from it's directory, it starts fine. If I do it from any other directory:

$ roy
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOENT, no such file or directory 'package.json'
at Object.openSync (fs.js:228:18)
at Object.readFileSync (fs.js:119:15)
at Object.main (/home/georgii/workspace/roy/src/compile.js:462:23)
at Object. (/home/georgii/workspace/roy/roy:2:26)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)