From e3f884a301f4023d45e38de077d1d95486ab28a3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 29 Dec 2019 19:28:57 +0000 Subject: [PATCH] Silence some LGTM warnings, since the script is modified on install. #1834 --- ndiff/scripts/ndiff | 2 +- zenmap/zenmap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ndiff/scripts/ndiff b/ndiff/scripts/ndiff index 8517c0757..eb87d2590 100755 --- a/ndiff/scripts/ndiff +++ b/ndiff/scripts/ndiff @@ -63,7 +63,7 @@ def is_secure_dir(path, num_symlinks=0): # by other users. The following line is replaced by the installation program. INSTALL_LIB = None if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB): - sys.path.append(INSTALL_LIB) + sys.path.append(INSTALL_LIB) # lgtm[py/unreachable-statement] try: import ndiff diff --git a/zenmap/zenmap b/zenmap/zenmap index 363b8dcf2..f1abadbc9 100755 --- a/zenmap/zenmap +++ b/zenmap/zenmap @@ -175,7 +175,7 @@ def is_secure_dir(path, num_symlinks=0): # by other users. The following line is replaced by the installation program. INSTALL_LIB = None if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB): - sys.path.append(INSTALL_LIB) + sys.path.append(INSTALL_LIB) # lgtm[py/unreachable-statement] try: import zenmapGUI.App