Skip to content

Commit

Permalink
Fix the bug cause Nougat can not use (#1738)
Browse files Browse the repository at this point in the history
* Bug fix for nougat require pdf

* Fixing bugs in a simpler and safer way
  • Loading branch information
Menghuan1918 committed Apr 24, 2024
1 parent 3b6cbbd commit cadaa81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/crazy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def nougat_with_timeout(self, command, cwd, timeout=3600):
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:
Expand Down

0 comments on commit cadaa81

Please sign in to comment.