diff options
Diffstat (limited to 'scripts/conf.py')
-rw-r--r-- | scripts/conf.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |