From ee1501340406719cbe893531b4bd0c0daed84526 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 17 Mar 2023 16:53:35 +0000 Subject: [PATCH] Use zenmapGUI.App directly instead of wrapper script when getting dependencies --- zenmap/install_scripts/utils/get_deps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenmap/install_scripts/utils/get_deps.py b/zenmap/install_scripts/utils/get_deps.py index af00507a9..631bae60b 100755 --- a/zenmap/install_scripts/utils/get_deps.py +++ b/zenmap/install_scripts/utils/get_deps.py @@ -16,7 +16,7 @@ def module_paths(mods): for m in mods: if m.__name__ in pyd_remove: 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__ def get_deps(): @@ -31,7 +31,7 @@ def get_deps(): # Now use modulefinder to get the rest 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()): parent = os.path.dirname(path) found_parent = False