Index: third_party/typ/typ/host.py |
diff --git a/third_party/typ/typ/host.py b/third_party/typ/typ/host.py |
index 4859d9c12db963457c6a1a054bac432490d5dfc4..c5f6ac8c8d4c94f39bd8a10a1ed50534d2203866 100644 |
--- a/third_party/typ/typ/host.py |
+++ b/third_party/typ/typ/host.py |
@@ -48,6 +48,7 @@ class Host(object): |
self.stderr = sys.stderr |
self.stdin = sys.stdin |
self.env = os.environ |
+ self.platform = sys.platform |
def abspath(self, *comps): |
return os.path.abspath(self.join(*comps)) |
@@ -75,6 +76,10 @@ class Host(object): |
# pylint type checking bug - pylint: disable=E1103 |
return proc.returncode, stdout.decode('utf-8'), stderr.decode('utf-8') |
+ def call_inline(self, argv, env=None): |
+ return subprocess.call(argv, stdin=self.stdin, stdout=self.stdout, |
+ stderr=self.stderr, env=env) |
+ |
def chdir(self, *comps): |
return os.chdir(self.join(*comps)) |