fix: handle relative paths in CLI

This commit is contained in:
Remi Gelinas
2024-07-17 16:51:16 -04:00
parent 3350e3c848
commit 368868f712
2 changed files with 5 additions and 4 deletions

View File

@@ -1687,9 +1687,7 @@ pub fn loadIter(
}
pub fn loadFile(self: *Config, alloc: Allocator, path: []const u8) !void {
const cwd = std.fs.cwd();
var file = try cwd.openFile(path, .{});
var file = try std.fs.cwd().openFile(path, .{});
defer file.close();
std.log.info("reading configuration file path={s}", .{path});