Improve string comparison in install.py to remove warning

This commit is contained in:
Gaute Lindkvist
2020-06-10 14:08:38 +02:00
parent b73f4aa5dc
commit 2f6d4a8f84

View File

@@ -8,7 +8,7 @@ src_root = sys.argv[1]
target_prefix = sys.argv[2]
install = int(sys.argv[3])
target_destdir = os.environ.get("DESTDIR", "")
if not target_destdir is "":
if target_destdir != "":
target_prefix = target_destdir + target_prefix
if not os.path.isdir(src_root):