mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-10 18:06:48 +08:00
fix: restore mypy ratchet after Windows updates
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ import sys
|
|||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
psql_exe = shutil.which("psql")
|
psql_exe = shutil.which("psql")
|
||||||
if psql_exe:
|
if psql_exe:
|
||||||
os.add_dll_directory(os.path.dirname(psql_exe))
|
getattr(os, "add_dll_directory")(os.path.dirname(psql_exe))
|
||||||
|
|
||||||
def _prepare_direct_execution_import_path() -> None:
|
def _prepare_direct_execution_import_path() -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -251,7 +251,8 @@ class SystemHelper(ConfigReloadMixin):
|
|||||||
"""
|
"""
|
||||||
执行Windows重启操作
|
执行Windows重启操作
|
||||||
"""
|
"""
|
||||||
def cmd(command: list) -> Tuple[bool, str]:
|
def cmd(command: list[str]) -> Tuple[bool, str]:
|
||||||
|
"""通过 Windows 命令解释器执行重启命令。"""
|
||||||
try:
|
try:
|
||||||
subprocess.run(command, shell=True)
|
subprocess.run(command, shell=True)
|
||||||
return True, ""
|
return True, ""
|
||||||
|
|||||||
Reference in New Issue
Block a user