]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blob - scripts/conf.py
Allow importing lcp_django from other python scripts
[linux-conf-perf.git] / scripts / conf.py
1 # This file is only loading ../conf.py
2 import os
3 import importlib.machinery
4
5 confpy = os.path.dirname(__file__) + "/../conf.py"
6
7 conf = importlib.machinery.SourceFileLoader("module.name", confpy).load_module()
8
9 def sf(path):
10         return os.path.join(os.path.relpath(conf.absroot), path)