summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRobert Mader <robert.mader@posteo.de>2020-03-29 15:51:47 +0200
committerRobert Mader <robert.mader@posteo.de>2020-03-29 15:51:52 +0200
commit7764f43da12d18fa48e00f121dee2b549d4f3784 (patch)
tree7e31ad5d7004f60b9982fbe3fad3bb1a00dcb73d /build
parent0e08a2d4147e24cf412daac244f9609eec648808 (diff)
downloadgjs-7764f43da12d18fa48e00f121dee2b549d4f3784.tar.gz
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 "!="? ```
Diffstat (limited to 'build')
-rw-r--r--build/symlink-gjs.py2
1 files changed, 1 insertions, 1 deletions
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)