From e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 27 Apr 2015 21:31:03 +0200 Subject: Chnage conf paths from absolute to relative --- scripts/conf.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/conf.py') diff --git a/scripts/conf.py b/scripts/conf.py index c2f891d..b3a0fee 100644 --- a/scripts/conf.py +++ b/scripts/conf.py @@ -5,3 +5,7 @@ import importlib.machinery confpy = os.path.dirname(__file__) + "/../conf.py" conf = importlib.machinery.SourceFileLoader("module.name", confpy).load_module() + +def sf(path): + return os.path.join(os.path.relpath(conf.absroot), path) + return '../' + path -- cgit v1.2.3