mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Silence some LGTM warnings, since the script is modified on install. #1834
This commit is contained in:
parent
2a0c1eca5c
commit
e3f884a301
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue