]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blobdiff - scripts/conf.py
Chnage conf paths from absolute to relative
[linux-conf-perf.git] / scripts / conf.py
index c2f891d5f9ee080b85fbf29495f4220147ac031e..b3a0fee6e5208ca8a100e8b7063d3b3fa5049b81 100644 (file)
@@ -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