MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetRunfilesDir

Method GetRunfilesDir

tensorflow/core/platform/windows/env.cc:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

GetExecutablePathMethod · 0.80
IsDirectoryMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected