| 194 | } |
| 195 | |
| 196 | string GetRunfilesDir() override { |
| 197 | string bin_path = this->GetExecutablePath(); |
| 198 | string runfiles_path = bin_path + ".runfiles\\org_tensorflow"; |
| 199 | Status s = this->IsDirectory(runfiles_path); |
| 200 | if (s.ok()) { |
| 201 | return runfiles_path; |
| 202 | } else { |
| 203 | return bin_path.substr(0, bin_path.find_last_of("/\\")); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | private: |
| 208 | void GetLocalTempDirectories(std::vector<string>* list) override; |
nothing calls this directly
no test coverage detected