I think cwd
is getting 2 different meanings:
- directory where the app lives
- directory where the user launch the app from
In shell scripting I can see the 2nd meaning applied, but the node-webkit community seems to be using the 1st
Correct me if I'm wrong, but I think you are looking for the 2nd: the path where the user was when calling to your app.
After some tests I finally found a way that works for me:
process.env.PWD