mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Prevent PyXML from importing, causing crashes
http://seclists.org/nmap-dev/2014/q2/318 Essentially, we import the xml name, then override its search path, stripping out the _xmlplus paths that PyXML uses. This leaves only the Python 2 standard library path, which is what Zenmap was written for.
This commit is contained in:
@@ -123,6 +123,11 @@
|
||||
import gobject
|
||||
import gtk
|
||||
|
||||
|
||||
# Prevent loading PyXML
|
||||
import xml
|
||||
xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
||||
|
||||
from xml.dom import minidom
|
||||
|
||||
from zenmapGUI.higwidgets.higboxes import HIGHBox
|
||||
|
||||
Reference in New Issue
Block a user