diff options
author | Aleksey Gurtovoy <agurtovoy@acm.org> | 2019-08-09 16:06:47 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-09-05 23:42:47 +0300 |
commit | 75daed27bc4e363696157617c7461414fc4e707b (patch) | |
tree | 2863934de82e0a7cc6a3dcd9ee23b4c4e378c550 /mesonbuild/envconfig.py | |
parent | caec875fe1922b40037e1fd9229433ede64f9f25 (diff) | |
download | meson-75daed27bc4e363696157617c7461414fc4e707b.zip meson-75daed27bc4e363696157617c7461414fc4e707b.tar.gz meson-75daed27bc4e363696157617c7461414fc4e707b.tar.bz2 |
mesonlib.split_args/quote_arg/join_args
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r-- | mesonbuild/envconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index f7a43a0..0c9f03f 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -12,11 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -import configparser, os, shlex, subprocess +import configparser, os, subprocess import typing from . import mesonlib -from .mesonlib import EnvironmentException +from .mesonlib import EnvironmentException, split_args from . import mlog _T = typing.TypeVar('_T') @@ -361,7 +361,7 @@ This is probably wrong, it should always point to the native compiler.''' % evar evar = self.evarMap.get(name, "") command = os.environ.get(evar) if command is not None: - command = shlex.split(command) + command = split_args(command) # Do not return empty or blank string entries if command is not None and (len(command) == 0 or len(command[0].strip()) == 0): |