1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 01:59:02 +00:00

Fix check for os.add_dll_directory

This commit is contained in:
dmiller
2024-04-09 17:34:01 +00:00
parent c2c6dbcf5d
commit db9a5801d0

View File

@@ -63,7 +63,7 @@ import configparser
import shutil
# https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
if os.add_dll_directory:
if hasattr(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