* See the License for the specific language governing permissions and\r
* limitations under the License.\r
*/\r
-\r
#include <dlog/dlog.h>\r
#include <map>\r
+#include <node.h>\r
+#include <tzplatform_config.h>\r
#include <unistd.h>\r
#include <v8.h>\r
-#include <node.h>\r
+\r
#include "nmt.h"\r
#include "translator.h"\r
\r
void NMT::SetPath(){\r
logd(LOG_TAG, __PRETTY_FUNCTION__);\r
vector<string> data_paths;\r
- for(map<string,pair<string, string>>::iterator iter = model_list.begin(); iter != model_list.end(); ++iter ){\r
- string modelPath = "/opt/usr/globalapps/" + iter->second.second + "/shared/res/assets";\r
+ string app_path = std::string(tzplatform_getenv(TZ_SYS_RW_APP)) + "/";\r
+ for (const auto& iter : model_list) {\r
+ string modelPath = app_path + iter.second.second + "/shared/res/assets";\r
if(access(modelPath.c_str(), 0) != -1)\r
data_paths.push_back(modelPath);\r
}\r