Export GRPC environment variable in Python instead of in setup-env.sh (#382)

* Export GRPC logging environment variable in Python.

* Don't wipe PYTHONPATH in setup-env.sh
This commit is contained in:
Robert Nishihara
2016-08-18 15:39:19 -07:00
committed by Philipp Moritz
parent 314bc9e980
commit b1db890cd8
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -654,6 +654,8 @@ def init(start_ray_local=False, num_workers=None, num_objstores=None, scheduler_
Exception: An exception is raised if an inappropriate combination of
arguments is passed in.
"""
# Make GRPC only print error messages.
os.environ["GRPC_VERBOSITY"] = "ERROR"
if driver_mode == raylib.PYTHON_MODE:
# If starting Ray in PYTHON_MODE, don't start any other processes.
pass