mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-03-14 04:51:42 +01:00
bind stdout and stderr of subprocess
This commit is contained in:
parent
0b97d0fae1
commit
e2feafef61
1 changed files with 5 additions and 1 deletions
|
@ -328,7 +328,11 @@ async def download_telegram_android_beta_and_extract_resources(session: aiohttp.
|
|||
os.remove('tool.apk')
|
||||
os.remove('android.apk')
|
||||
|
||||
process = await asyncio.create_subprocess_exec('java', '-jar', 'tool.apk', 'd', '-s', '-f', 'android.apk')
|
||||
process = await asyncio.create_subprocess_exec(
|
||||
'java', '-jar', 'tool.apk', 'd', '-s', '-f', 'android.apk',
|
||||
stdout=asyncio.subprocess.STDOUT,
|
||||
stderr=asyncio.subprocess.STDOUT
|
||||
)
|
||||
await process.communicate()
|
||||
|
||||
if process.returncode != 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue