Implment app.getAppPath API.

This commit is contained in:
Haojian Wu 2015-07-06 17:35:35 +08:00
parent 8f06bd6f3e
commit a2857d2dca
4 changed files with 13 additions and 0 deletions

View file

@ -291,6 +291,7 @@ if (option.file && !option.webdriver) {
app.setName(packageJson.name);
app.setPath('userData', path.join(app.getPath('appData'), app.getName()));
app.setPath('userCache', path.join(app.getPath('cache'), app.getName()));
app.setAppPath(packagePath);
}
// Run the app.