Fix process.resourcesPath.

This commit is contained in:
Cheng Zhao 2014-03-16 13:24:25 +08:00
parent 6285e26972
commit 5dd5f18edf
5 changed files with 10 additions and 9 deletions

View file

@ -125,7 +125,8 @@ node::Environment* NodeBindings::CreateEnvironment(
exec_path.DirName().AppendASCII("resources");
#endif
base::FilePath script_path =
resources_path.AppendASCII(is_browser_ ? "browser" : "renderer")
resources_path.AppendASCII("atom")
.AppendASCII(is_browser_ ? "browser" : "renderer")
.AppendASCII("lib")
.AppendASCII("init.js");
std::string script_path_str = script_path.AsUTF8Unsafe();