diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-10 19:05:15 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-04 00:51:52 +0200 |
commit | e8294fad100dbdd9199136f131f230c714d8dded (patch) | |
tree | 6c625610f9c9d6ac72aa6c83800b5964ccdf71a7 /mesonbuild/coredata.py | |
parent | 65f78a722ad0f8ab260e7cf24636ef38e8bd957f (diff) | |
download | meson-python35.tar.gz |
Bump minimum supported Python from 3.4 to 3.5.python35
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r-- | mesonbuild/coredata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index d4a91a7b0..0fdac8b8e 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -18,7 +18,7 @@ import pickle, os, uuid import sys from pathlib import PurePath from collections import OrderedDict -from .mesonlib import MesonException, commonpath +from .mesonlib import MesonException from .mesonlib import default_libdir, default_libexecdir, default_prefix import ast @@ -274,7 +274,7 @@ class CoreData: # commonpath will always return a path in the native format, so we # must use pathlib.PurePath to do the same conversion before # comparing. - if commonpath([value, prefix]) != str(PurePath(prefix)): + if os.path.commonpath([value, prefix]) != str(PurePath(prefix)): m = 'The value of the {!r} option is {!r} which must be a ' \ 'subdir of the prefix {!r}.\nNote that if you pass a ' \ 'relative path, it is assumed to be a subdir of prefix.' |