From fd66995ac294eb433009d5c568a285bcdc4121b3 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 21 Dec 2017 15:03:27 +0000 Subject: [PATCH] Let docs build pick release or development built modules --- docs/conf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 46a793fe3..c725b2133 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,11 +26,13 @@ import struct # path to module libraries for windows if struct.calcsize("P") == 8: - modulepath = '../x64/Development' + binpath = '../x64/' else: - modulepath = '../Win32/Development' + binpath = '../Win32/' -sys.path.insert(0, os.path.abspath(modulepath)) +# Prioritise release over development builds +sys.path.insert(0, os.path.abspath(binpath + 'Development')) +sys.path.insert(0, os.path.abspath(binpath + 'Release')) # path to module libraries for linux sys.path.insert(0, os.path.abspath('../build/bin'))