Silence some LGTM warnings, since the script is modified on install. #1834

This commit is contained in:
dmiller 2019-12-29 19:28:57 +00:00
parent 2a0c1eca5c
commit e3f884a301
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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