mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 07:59:03 +00:00
Placeholder for sys.path augmentation.
This commit is contained in:
@@ -133,6 +133,13 @@ def is_secure_dir(path, num_symlinks = 0):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# 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 = None
|
||||||
|
if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB):
|
||||||
|
sys.path.append(INSTALL_LIB)
|
||||||
|
|
||||||
import zenmapGUI.App
|
import zenmapGUI.App
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user