summaryrefslogtreecommitdiffstats
path: root/scripts/util.py
blob: bfbd6cbf09750f76b643a134c26174027c8fc076 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# -*- coding: utf-8 -*-

import sys
import os.path

ROOTDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.realpath(ROOTDIR))


def path(*segments, join=os.path.join):
    return join(ROOTDIR, *segments)