From 7764f43da12d18fa48e00f121dee2b549d4f3784 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sun, 29 Mar 2020 15:51:47 +0200 Subject: build: Use '!=' instead of 'is not' to compare string Fixes a warning during install with newer python versions: ``` SyntaxWarning: "is not" with a literal. Did you mean "!="? ``` --- build/symlink-gjs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/symlink-gjs.py b/build/symlink-gjs.py index 0802669b..1a001fb2 100644 --- a/build/symlink-gjs.py +++ b/build/symlink-gjs.py @@ -12,7 +12,7 @@ install_prefix = os.environ.get('MESON_INSTALL_PREFIX') bindir = sys.argv[1] if destdir is not None: # os.path.join() doesn't concat paths if one of them is absolute - if install_prefix[0] == '/' and os.name is not 'nt': + if install_prefix[0] == '/' and os.name != 'nt': installed_bin_dir = os.path.join(destdir, install_prefix[1:], bindir) else: installed_bin_dir = os.path.join(destdir, install_prefix, bindir) -- cgit v1.2.1