mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
Use zenmapGUI.App directly instead of wrapper script when getting dependencies
This commit is contained in:
@@ -16,7 +16,7 @@ def module_paths(mods):
|
|||||||
for m in mods:
|
for m in mods:
|
||||||
if m.__name__ in pyd_remove:
|
if m.__name__ in pyd_remove:
|
||||||
continue
|
continue
|
||||||
elif getattr(m, "__file__", None) and not m.__file__.endswith("zenmap"):
|
elif getattr(m, "__file__", None) and m.__file__.startswith(sys.prefix):
|
||||||
yield m.__file__
|
yield m.__file__
|
||||||
|
|
||||||
def get_deps():
|
def get_deps():
|
||||||
@@ -31,7 +31,7 @@ def get_deps():
|
|||||||
|
|
||||||
# Now use modulefinder to get the rest
|
# Now use modulefinder to get the rest
|
||||||
mfind = modulefinder.ModuleFinder()
|
mfind = modulefinder.ModuleFinder()
|
||||||
mfind.run_script(os.path.normpath(__file__ + '/../../../zenmap'))
|
mfind.run_script(os.path.normpath(__file__ + '/../../../zenmapGUI/App.py'))
|
||||||
for path in module_paths(mfind.modules.values()):
|
for path in module_paths(mfind.modules.values()):
|
||||||
parent = os.path.dirname(path)
|
parent = os.path.dirname(path)
|
||||||
found_parent = False
|
found_parent = False
|
||||||
|
|||||||
Reference in New Issue
Block a user