KeithSloan / GDML

FreeCAD GDML Workbench - AddonManager Installable
Other
50 stars 17 forks source link

improvement: expand volume without lxml #18

Closed lambdam94 closed 4 years ago

lambdam94 commented 4 years ago

Hello Keith,

normaly, we cannot expand volume without lxml. But I tried, to replace line 542 in GDMLcommand.py by the following lines and it seems working well

Regards Dam

           #import lxml.etree  as ET 
           try :
                 from lxml.etree as ET
           except ImportError:
                 try:
                     import xml.etree.ElementTree as ET
                 except ImportError:
                     print('pb xml lib not found')
                     sys.exit()
lambdam94 commented 4 years ago

Thanks Keith! Regards Dam

lambdam94 commented 4 years ago

Hello again Keith,

I give you a bad advice, could you please replace

line 544

             from lxml.etree as ET

by

line 544

             from lxml.etree import ET

Sorry and thanks! Regards Dam

KeithSloan commented 4 years ago

Funny I nearly questioned that when I saw it

lambdam94 commented 4 years ago

Thanks! Regards Dam