File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ std::string Library::cachePath() const {
173
173
}
174
174
175
175
void Library::registerDataPath (const std::string& path) {
176
- ATLAS_DEBUG_VAR (path);
177
176
if (data_paths_.empty ()) {
178
177
init_data_paths (data_paths_);
179
178
}
@@ -183,7 +182,7 @@ void Library::registerDataPath(const std::string& path) {
183
182
184
183
std::string Library::dataPath () const {
185
184
if (data_paths_.empty ()) {
186
- ATLAS_THROW_EXCEPTION ( " Attempted to access atlas::Library function before atlas was initialized " );
185
+ init_data_paths (data_paths_ );
187
186
}
188
187
std::vector<std::string> paths = data_paths_;
189
188
auto join = [](const std::vector<std::string>& v, const std::string& sep) -> std::string {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class Library : public eckit::system::Library {
104
104
105
105
private:
106
106
std::vector<eckit::system::Plugin*> plugins_;
107
- std::vector<std::string> data_paths_;
107
+ mutable std::vector<std::string> data_paths_;
108
108
size_t atlas_io_trace_hook_;
109
109
};
110
110
You can’t perform that action at this time.
0 commit comments