"...models/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "f16b67234260f0a32f6106313ad42e102ada6fa0"
Commit e4ab5a86 authored by Reed's avatar Reed Committed by Taylor Robie
Browse files

Fix crash when Python interpreter not on PATH. (#4961)

* Fix crash when Python interpreter not on PATH.

* Fix lint error.
parent c242705b
...@@ -15,10 +15,13 @@ ...@@ -15,10 +15,13 @@
"""Helper file for running the async data generation process in OSS.""" """Helper file for running the async data generation process in OSS."""
import os import os
import six import sys
_PYTHON = "python3" if six.PY3 else "python2" _PYTHON = sys.executable
if not _PYTHON:
raise RuntimeError("Could not find path to Python interpreter in order to "
"spawn subprocesses.")
_ASYNC_GEN_PATH = os.path.join(os.path.dirname(__file__), _ASYNC_GEN_PATH = os.path.join(os.path.dirname(__file__),
"data_async_generation.py") "data_async_generation.py")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment