Skip to content

Commit 1ae16de

Browse files
committed
Lock base path to loaded schema file
1 parent 1751045 commit 1ae16de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

harp/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def create_reader(
191191
if isinstance(device, Model):
192192
base_path = Path(device.device)
193193
else:
194-
path = Path(device)
194+
path = Path(device).absolute().resolve()
195195
is_dir = os.path.isdir(path)
196196
if is_dir:
197197
device = path / "device.yml"

0 commit comments

Comments
 (0)