diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-01-03 16:30:25 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-01-03 16:30:25 -0500 |
| commit | 96acbed85902d8dfd43ef624afac72145ae6e577 (patch) | |
| tree | 82428cdb6709ddd9bdf6ce3cedcf6bd76bc12f5d /python/scriptingprovider.py | |
| parent | 1996ad98bd1bbd6fdaddc78a2e2b3bb5875f7215 (diff) | |
Reverting last commit, we can't use this method in the core, since it will break those launching binaryninja from the commandline
Diffstat (limited to 'python/scriptingprovider.py')
| -rw-r--r-- | python/scriptingprovider.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/python/scriptingprovider.py b/python/scriptingprovider.py index 57a86d48..079b47cd 100644 --- a/python/scriptingprovider.py +++ b/python/scriptingprovider.py @@ -634,8 +634,7 @@ class PythonScriptingProvider(ScriptingProvider): PythonScriptingProvider().register() -if not sys.stdin.isatty(): - # Wrap stdin/stdout/stderr for Python scripting provider implementation - sys.stdin = _PythonScriptingInstanceInput(sys.stdin) - sys.stdout = _PythonScriptingInstanceOutput(sys.stdout, False) - sys.stderr = _PythonScriptingInstanceOutput(sys.stderr, True) +# Wrap stdin/stdout/stderr for Python scripting provider implementation +sys.stdin = _PythonScriptingInstanceInput(sys.stdin) +sys.stdout = _PythonScriptingInstanceOutput(sys.stdout, False) +sys.stderr = _PythonScriptingInstanceOutput(sys.stderr, True) |
