diff options
author | Robert Mader <robert.mader@posteo.de> | 2020-03-29 15:51:47 +0200 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2020-03-29 15:51:52 +0200 |
commit | 7764f43da12d18fa48e00f121dee2b549d4f3784 (patch) | |
tree | 7e31ad5d7004f60b9982fbe3fad3bb1a00dcb73d /build | |
parent | 0e08a2d4147e24cf412daac244f9609eec648808 (diff) | |
download | gjs-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.py | 2 |
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) |