1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 15:09:01 +00:00

I think INSTALL_LIB should be set to None by default so it is only used if the installer has set it to something specific. Otherwise I run into issues on Windows

This commit is contained in:
fyodor
2014-04-12 06:12:01 +00:00
parent f83f67ccb9
commit d7ab6f2001

View File

@@ -61,7 +61,7 @@ def is_secure_dir(path, num_symlinks=0):
# Add the install_lib directory to sys.path, the list of directories searched
# for modules, but don't do it if the directory or its parents may be writable
# by other users. The following line is replaced by the installation program.
INSTALL_LIB = '/usr/local/lib/python2.7/site-packages/'
INSTALL_LIB = None
if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB):
sys.path.append(INSTALL_LIB)