#13888 [Bug] Unable to load OpenVINO in Electron app node addon (#13890)

Co-authored-by: venki <venkatesan.t@ringcentral.com>
This commit is contained in:
venki-thiyag
2022-11-07 19:27:17 +04:00
committed by GitHub
co-authored by venki
parent c37e06f947
commit 835236fae6
+11
View File
@@ -52,7 +52,14 @@
std::string ov::util::get_file_name(const std::string& s) {
std::string rc = s;
// Linux-style separator
auto pos = s.find_last_of('/');
if (pos != std::string::npos) {
rc = s.substr(pos + 1);
return rc;
}
// Windows-style separator
pos = s.find_last_of('\\');
if (pos != std::string::npos) {
rc = s.substr(pos + 1);
}
@@ -109,7 +116,11 @@ std::string join_paths(const std::string& s1, const std::string& s2) {
} else if (s1.size() > 0) {
rc = s1;
if (rc[rc.size() - 1] != '/') {
#ifndef _WIN32
rc += '/';
#else
rc += '\\';
#endif
}
rc += s2;
} else {