mirror of
https://github.com/adef17286-sudo/NPO_start_DL.git
synced 2025-12-19 12:42:15 +00:00
DL.py (linux)
This commit is contained in:
parent
ac2ee4b6a8
commit
43a20d9306
4
DL.py
4
DL.py
@ -16,8 +16,8 @@ from pywidevine.pssh import PSSH
|
|||||||
def run_npo_get_output(link):
|
def run_npo_get_output(link):
|
||||||
try:
|
try:
|
||||||
script_dir = Path(sys.argv[0]).parent.resolve()
|
script_dir = Path(sys.argv[0]).parent.resolve()
|
||||||
npo_path = script_dir / "NPO"
|
npo_path = script_dir / "NPO.py"
|
||||||
p = subprocess.run([str(npo_path), link],
|
p = subprocess.run([sys.executable, str(npo_path), link],
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
text=True)
|
text=True)
|
||||||
return p.stdout or "", p.stderr or "", p.returncode
|
return p.stdout or "", p.stderr or "", p.returncode
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user