aboutsummaryrefslogtreecommitdiffstats
path: root/test/__init__.py
blob: 55f45b65d3c16fd98f7aa4d18f2228d50c62c097 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os.path
import sys
import sysconfig


def distutils_dir_name(dname):
    """Returns the name of a distutils build directory"""
    f = "{dirname}.{platform}-{version[0]}.{version[1]}"
    return f.format(dirname=dname,
                    platform=sysconfig.get_platform(),
                    version=sys.version_info)
wlp_lib_path = os.path.join('build', distutils_dir_name('lib'))
sys.path.insert(0, wlp_lib_path)