diff options
Diffstat (limited to 'tmp/test-node.js')
-rwxr-xr-x | tmp/test-node.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tmp/test-node.js b/tmp/test-node.js index a80d0935..b78fccbc 100755 --- a/tmp/test-node.js +++ b/tmp/test-node.js @@ -5,8 +5,10 @@ var fs = require("fs"); var vm = require("vm"); var sys = require("util"); + var path = require("path"); function load_global(file) { + file = path.resolve(path.dirname(module.filename), file); try { var code = fs.readFileSync(file, "utf8"); return vm.runInThisContext(code, file); |