// get absolute path of input dll file
std::string absoluteDllPath = absolutePath(argv[1]);
+ std::string absoluteRootPath = baseName(absoluteDllPath);
- if (runtime->initialize(LaunchMode::corerun, false, absoluteDllPath.c_str()) != 0) {
+ if (runtime->initialize(LaunchMode::corerun, false, absoluteRootPath.c_str()) != 0) {
_SOUT("Failed to initialize");
return -1;
}
// launch application
- if (runtime->launch(fileName, baseName(absoluteDllPath).c_str(), absoluteDllPath.c_str(), vargc, &vargs[0])) {
+ if (runtime->launch(fileName, absoluteRootPath.c_str(), absoluteDllPath.c_str(), vargc, &vargs[0])) {
_SOUT("Failed to launch");
return -1;
}