From 6d1d02dd75a1131d03de6d2f29d2a19e2d6a69dc Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 13 Feb 2018 17:24:04 +0100 Subject: [PATCH] mgr/dashboard_v2: Add bin dir to PATH Add `/build/bin` to `PATH` when running unit tests. Signed-off-by: Sebastian Wagner --- src/pybind/mgr/dashboard_v2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/dashboard_v2/__init__.py b/src/pybind/mgr/dashboard_v2/__init__.py index 248abaabc8389..ccf1696f5f1ff 100644 --- a/src/pybind/mgr/dashboard_v2/__init__.py +++ b/src/pybind/mgr/dashboard_v2/__init__.py @@ -25,3 +25,5 @@ else: logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) logging.root.handlers[0].setLevel(logging.DEBUG) + os.environ['PATH'] = '{}:{}'.format(os.path.abspath('../../../../build/bin'), + os.environ['PATH']) -- 2.39.5