mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix check for os.add_dll_directory
This commit is contained in:
parent
c2c6dbcf5d
commit
db9a5801d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue