mirror of
https://github.com/shirayu/whispering.git
synced 2025-02-16 18:45:14 +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:
|
if opts.tags:
|
||||||
tags = []
|
tags = []
|
||||||
|
if str(opts.tags) == "/dev/stdin":
|
||||||
|
for line in sys.stdin:
|
||||||
|
tags.append(line[:-1])
|
||||||
|
else:
|
||||||
with opts.tags.open() as f:
|
with opts.tags.open() as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
tags.append(line[:-1])
|
tags.append(line[:-1])
|
||||||
|
|
Loading…
Reference in a new issue