1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 21:51:28 +00:00

Fixes for Windows Zenmap build

This commit is contained in:
dmiller
2024-04-01 22:32:49 +00:00
parent 036714cde2
commit dbedc5838b
6 changed files with 50 additions and 25 deletions

View File

@@ -62,6 +62,10 @@ import sys
import configparser
import shutil
# https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
if os.add_dll_directory:
os.add_dll_directory(os.path.dirname(sys.executable))
# Cause an exception if PyGTK can't open a display. Normally this just
# produces a warning, but the lack of a display eventually causes a
# segmentation fault. See http://live.gnome.org/PyGTK/WhatsNew210.