From ed13067343186b5dad0566962cd308445136f3b7 Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Sun, 25 Oct 2015 05:40:32 +0200 Subject: Fixed importing of packages at documentation building --- scripts/automation/trex_control_plane/doc/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/automation/trex_control_plane/doc') diff --git a/scripts/automation/trex_control_plane/doc/conf.py b/scripts/automation/trex_control_plane/doc/conf.py index 46d0435d..aeee475f 100755 --- a/scripts/automation/trex_control_plane/doc/conf.py +++ b/scripts/automation/trex_control_plane/doc/conf.py @@ -24,6 +24,13 @@ sys.path.insert(0, os.path.abspath('../client')) sys.path.insert(0, os.path.abspath('../client_utils')) sys.path.insert(0, os.path.abspath('../examples')) sys.path.insert(0, os.path.abspath('../common')) +## add all external libs path manually +external_libs_path = os.path.join(os.pardir, os.pardir, os.pardir, "external_libs") +external_libs_pkgs = [os.path.join(external_libs_path, p) + for p in os.listdir(external_libs_path) + if os.path.isdir(os.path.join(external_libs_path, p))] +for p in external_libs_pkgs: + sys.path.insert(1, p) # -- General configuration ------------------------------------------------ -- cgit 1.2.3-korg