Set the base path for loading models.
| 82 | |
| 83 | // Set the base path for loading models. |
| 84 | void SetModelBaseDir(const string& path) { |
| 85 | model_base_dir_ = path; |
| 86 | if (path[path.length() - 1] != '/') { |
| 87 | model_base_dir_ += "/"; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // Return the full path of a model. |
| 92 | string GetFullPath(const string& path) { return model_base_dir_ + path; } |