Closed rejeep closed 10 years ago
Is this perhaps related to #13?
Related, yes. But not the same issue. In order to do what I want, I need to:
node
in my path when I exec the mocha
command. This is what this issue is about.Setting exec-path
is not the good approach because it will not affect you PATH in the view of your script, try instead modifying your PATH inside your script.
Hi,
I'm trying to create an async job that runs the
mocha
command, which is a node-js file with this shebang#!/usr/bin/env node
. The problem is thatnode
lives in/usr/local/bin
and that is not in Emacs default path.I'm trying to add that to the path using this:
But the path is not added. I can use
setenv
, but that will set it for good, which I don't want. Sure I could usesetenv
again and restore the value, but that seems rather lame. Any way to only set the path while running the async job?