mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 07:33:53 +08:00
.
This commit is contained in:
parent
1c17b4e17f
commit
6532762bb8
@ -10,13 +10,15 @@ from myutils.utils import getlanguagespace
|
|||||||
from gui.dynalang import LPushButton, LFormLayout, LLabel
|
from gui.dynalang import LPushButton, LFormLayout, LLabel
|
||||||
from gui.usefulwidget import SuperCombo, getboxlayout
|
from gui.usefulwidget import SuperCombo, getboxlayout
|
||||||
import threading, qtawesome
|
import threading, qtawesome
|
||||||
|
from myutils.subproc import subproc_w
|
||||||
|
|
||||||
|
|
||||||
def getallsupports():
|
def getallsupports():
|
||||||
_ = (
|
_ = (
|
||||||
subprocess.run(
|
subproc_w(
|
||||||
"powershell Get-WindowsCapability -Online | Where-Object { $_.Name -Like 'Language.OCR*' }",
|
"powershell Get-WindowsCapability -Online | Where-Object { $_.Name -Like 'Language.OCR*' }",
|
||||||
stdout=subprocess.PIPE,
|
needstdio=True,
|
||||||
|
run=True,
|
||||||
)
|
)
|
||||||
.stdout.decode()
|
.stdout.decode()
|
||||||
.splitlines()
|
.splitlines()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user