-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the location of nw.exe? #1197
Comments
path.dirname(process.execPath); |
Node-Webkit extracts the As @xdenser has mentioned you can use var path = require('path');
var nwPath = process.execPath;
var nwDir = path.dirname(nwPath); |
how to do the side by side packaging? |
Putting the package.json file and nw.exe in same folder without compressing. |
sorry for necro'ing an almost 3-year old thread, but it seems there still isn't a way of getting the source of the exe without side by side packaging, so building upon @Subash's code, we can do:
then |
I tried process.cwd() but I'm getting some weird location : C:\Users\Dinesh\AppData\Local\Temp\nw2300_31612
nw.exe is at the location : C:\Users\Dinesh\Programs\Node-Webkit\Package
why is this difference in the paths and how can I get the location of nw.exe?
The text was updated successfully, but these errors were encountered: