mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-22 08:51:01 +00:00
Fix operation of /dev/stdin for Windows
This commit is contained in:
parent
0cd6425a4f
commit
9e4b88fb6a
1 changed files with 6 additions and 2 deletions
|
@ -47,6 +47,10 @@ def main() -> None:
|
|||
|
||||
if opts.tags:
|
||||
tags = []
|
||||
if str(opts.tags) == "/dev/stdin":
|
||||
for line in sys.stdin:
|
||||
tags.append(line[:-1])
|
||||
else:
|
||||
with opts.tags.open() as f:
|
||||
for line in f:
|
||||
tags.append(line[:-1])
|
||||
|
|
Loading…
Reference in a new issue