refactor: Remove app_main.cc as the application entry point
- Deleted app_main.cc to streamline the project structure, as it is no longer needed. - Updated CMakeLists.txt to remove references to the deleted app_main.cc file, ensuring a clean build configuration.
This commit is contained in:
@@ -120,10 +120,22 @@ absl::StatusOr<std::string> PromptBuilder::ResolveCataloguePath(
|
||||
for (const auto& candidate : search_paths) {
|
||||
fs::path resolved = candidate;
|
||||
if (resolved.is_relative()) {
|
||||
resolved = fs::absolute(resolved);
|
||||
try {
|
||||
resolved = fs::absolute(resolved);
|
||||
} catch (const std::exception& e) {
|
||||
// If we can't resolve the absolute path (e.g., cwd doesn't exist),
|
||||
// just try the relative path as-is
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (fs::exists(resolved)) {
|
||||
return resolved.string();
|
||||
|
||||
try {
|
||||
if (fs::exists(resolved)) {
|
||||
return resolved.string();
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
// If checking existence fails, just continue to next path
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user