blob: b3a0fee6e5208ca8a100e8b7063d3b3fa5049b81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# This file is only loading ../conf.py
import os
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
|