Skip to content

Commit 01d4fe0

Browse files
committed
read with utf-8
1 parent e23c59b commit 01d4fe0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

idom/client/manage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
def web_module_exports(package_name: str) -> List[str]:
2323
web_module_path(package_name, must_exist=True)
24-
return find_js_module_exports_in_source(web_module_path(package_name).read_text())
24+
return find_js_module_exports_in_source(
25+
web_module_path(package_name).read_text(encoding="utf-8")
26+
)
2527

2628

2729
def web_module_url(package_name: str) -> str:
@@ -136,7 +138,7 @@ def _run_subprocess(args: List[str], cwd: Path) -> None:
136138
raise RuntimeError(f"Failed to run command - {cmd!r} is not installed.")
137139
try:
138140
subprocess.run(
139-
[cmd] + args,
141+
[which_cmd] + args,
140142
cwd=cwd,
141143
check=True,
142144
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)