Skip to content

Commit a2fa355

Browse files
committed
Fix previewer script
1 parent 68db73c commit a2fa355

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/previewer

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def get_config(args: t.List[str]) -> Namespace:
102102
ns.command = shlex.split(ns.command)
103103
if not ns.watch:
104104
parser.error('You must specify at least one --watch')
105+
ns.watch = [
106+
str(Path(watch).relative_to(Path.cwd()))
107+
for watch in ns.watch
108+
]
105109
return ns
106110

107111

0 commit comments

Comments
 (0)