From fea6370f55789d5c7f86e14520ef1baa5052cef6 Mon Sep 17 00:00:00 2001 From: "Ilya.Kazakevich" Date: Wed, 26 Jun 2019 18:00:04 +0300 Subject: [PATCH] PY-35423: Add helpers dir to sys.path. Env plugin could break PYTHONPATH. Helpers import each other, so we need to have helpers dir in sys.path GitOrigin-RevId: d47b763765f6ff26ab77898f03008c4078e28acc --- python/helpers/pycharm/_jb_runner_tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/helpers/pycharm/_jb_runner_tools.py b/python/helpers/pycharm/_jb_runner_tools.py index 4a5d4cabcd7e..997cbe68e3d4 100644 --- a/python/helpers/pycharm/_jb_runner_tools.py +++ b/python/helpers/pycharm/_jb_runner_tools.py @@ -51,6 +51,9 @@ class _TreeManagerHolder(object): return self._manager_imp def _fill_manager(self): + path = os.path.dirname(os.path.realpath(__file__)) + if path not in sys.path: + sys.path.append(path) if self.parallel: from _jb_parallel_tree_manager import ParallelTreeManager self._manager_imp = ParallelTreeManager()