Browse Source

returns stderr too; starting FileSystem stuff

refactor
Raphael Roberts 7 years ago
parent
commit
91ffad493d
  1. 5
      pyadb/internal/__init__.py
  2. 2
      pyadb/internal/cli_wrap.py

5
pyadb/internal/__init__.py

@ -0,0 +1,5 @@
from pyadb.internal.cli_wrap import AdbWrapper
class FileSystem(AdbWrapper):
pass

2
pyadb/internal/cli_wrap.py

@ -22,7 +22,7 @@ class AdbWrapper:
if output_streams: if output_streams:
res = subprocess.run(comspec, capture_output=True, check=True) res = subprocess.run(comspec, capture_output=True, check=True)
return res.stdout
return res.stdout, res.stderr
else: else:
ret = subprocess.check_call(comspec, shell=False) ret = subprocess.check_call(comspec, shell=False)

Loading…
Cancel
Save