|
@@ -7,9 +7,11 @@
|
|
|
|
|
|
|
|
from shapely.geometry import LineString
|
|
from shapely.geometry import LineString
|
|
|
from shapely.affinity import rotate
|
|
from shapely.affinity import rotate
|
|
|
-#FIXME: No such class as Vec3 in ezdxf.0.15.1, instead there is Vector "ImportError: cannot import name 'Vec3' from 'ezdxf.math"
|
|
|
|
|
-#from ezdxf.math import Vec3 as ezdxf_vector
|
|
|
|
|
-from ezdxf.math import Vector as ezdxf_vector
|
|
|
|
|
|
|
+# Vector was an older name for Vec3; try both for backward compatibility:
|
|
|
|
|
+try:
|
|
|
|
|
+ from ezdxf.math import Vec3 as ezdxf_vector
|
|
|
|
|
+except ImportError:
|
|
|
|
|
+ from ezdxf.math import Vector as ezdxf_vector
|
|
|
|
|
|
|
|
from appParsers.ParseFont import *
|
|
from appParsers.ParseFont import *
|
|
|
from appParsers.ParseDXF_Spline import *
|
|
from appParsers.ParseDXF_Spline import *
|