Remove the concept of a resource directory
The concept of a resource directory was confusing, error-prone and was only used to specify the directory of the base config json anyway. Therefore, remove the concept of the resource directory and use the parent directory of the base config directly.
This commit is contained in:
@@ -54,9 +54,8 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
std::string pathToJson = argv[1];
|
||||
std::string resourceDirectory = argc <= 3 ? DRAMSYS_RESOURCE_DIR : argv[3];
|
||||
|
||||
auto configuration = DRAMSys::Config::from_path(pathToJson, resourceDirectory);
|
||||
auto configuration = DRAMSys::Config::from_path(pathToJson);
|
||||
|
||||
nlohmann::json json;
|
||||
json["simulation"] = configuration;
|
||||
|
||||
Reference in New Issue
Block a user