diff options
| author | William Hubbs <w.d.hubbs@gmail.com> | 2017-11-22 16:21:08 -0600 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-23 21:58:08 +0200 |
| commit | 325b2c25b611d1e00a753cefe38f6dd24a988575 (patch) | |
| tree | c3f1463cae4983bff70d7a1eef5969098bc54b38 | |
| parent | 247d632f376fe209b336a5100a589c2599687b27 (diff) | |
| download | meson-325b2c25b611d1e00a753cefe38f6dd24a988575.tar.gz | |
Allow prefix to be the root directory
| -rw-r--r-- | mesonbuild/coredata.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index e8b23fd90..401211a6b 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -193,6 +193,10 @@ class CoreData: # string is of type 'C:\' because 'C:' is not an absolute path. if len(prefix) == 3 and prefix[1] == ':': pass + # If prefix is a single character, preserve it since it is + # the root directory. + elif len(prefix) == 1: + pass else: prefix = prefix[:-1] return prefix |
