Fix the bug cause Nougat can not use (#1738)
* Bug fix for nougat require pdf * Fixing bugs in a simpler and safer way
This commit is contained in:
parent
3b6cbbdcb0
commit
cadaa81030
@ -568,7 +568,7 @@ class nougat_interface():
|
||||
from toolbox import ProxyNetworkActivate
|
||||
logging.info(f'正在执行命令 {command}')
|
||||
with ProxyNetworkActivate("Nougat_Download"):
|
||||
process = subprocess.Popen(command, shell=True, cwd=cwd, env=os.environ)
|
||||
process = subprocess.Popen(command, shell=False, cwd=cwd, env=os.environ)
|
||||
try:
|
||||
stdout, stderr = process.communicate(timeout=timeout)
|
||||
except subprocess.TimeoutExpired:
|
||||
|
Loading…
x
Reference in New Issue
Block a user