| 9 | namespace obe::System::Package |
| 10 | { |
| 11 | std::string GetPackageLocation(const std::string& packageName) |
| 12 | { |
| 13 | if (PackageExists(packageName)) |
| 14 | { |
| 15 | return vili::parser::from_file("Package/Packages.vili"_fs) |
| 16 | .at(packageName) |
| 17 | .at("path"); |
| 18 | } |
| 19 | throw Exceptions::UnknownPackage(packageName, ListPackages(), EXC_INFO); |
| 20 | } |
| 21 | |
| 22 | bool PackageExists(const std::string& packageName) |
| 23 | { |
no test coverage detected