summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/doc
diff options
context:
space:
mode:
authorDan Klein <danklei@cisco.com>2015-10-25 05:40:32 +0200
committerDan Klein <danklei@cisco.com>2015-10-25 05:40:32 +0200
commited13067343186b5dad0566962cd308445136f3b7 (patch)
treef10869945c323634302c538260ef92c15cc690f2 /scripts/automation/trex_control_plane/doc
parent876c76572fdb2fb8f0e8db21bc420d284dc05950 (diff)
Fixed importing of packages at documentation building
Diffstat (limited to 'scripts/automation/trex_control_plane/doc')
-rwxr-xr-xscripts/automation/trex_control_plane/doc/conf.py7
1 files changed, 7 insertions, 0 deletions
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 ------------------------------------------------