py3: arch: fix tests
issue 0000995
This commit is contained in:
@@ -59,7 +59,7 @@ def readPresets():
|
||||
for profilefile in profilefiles:
|
||||
if os.path.exists(profilefile):
|
||||
try:
|
||||
with open(profilefile, "rb") as csvfile:
|
||||
with open(profilefile, "r") as csvfile:
|
||||
beamreader = csv.reader(csvfile)
|
||||
bid=1 #Unique index
|
||||
for row in beamreader:
|
||||
|
||||
@@ -296,10 +296,10 @@ class _Rebar(ArchComponent.Component):
|
||||
shapes = []
|
||||
placementlist = []
|
||||
if obj.Amount == 1:
|
||||
barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value)
|
||||
placementlist.append(barplacement)
|
||||
if hasattr(obj,"Spacing"):
|
||||
obj.Spacing = 0
|
||||
barplacement = CalculatePlacement(obj.Amount, 1, size, axis, father.Placement.Rotation, obj.OffsetStart.Value, obj.OffsetEnd.Value)
|
||||
placementlist.append(barplacement)
|
||||
if hasattr(obj,"Spacing"):
|
||||
obj.Spacing = 0
|
||||
else:
|
||||
if obj.OffsetStart.Value:
|
||||
baseoffset = DraftVecUtils.scaleTo(axis,obj.OffsetStart.Value)
|
||||
|
||||
@@ -30,7 +30,7 @@ if FreeCAD.GuiUp:
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
else:
|
||||
# \cond
|
||||
def translate(ctxt,txt):
|
||||
def translate(ctxt,txt, utf8_decode=False):
|
||||
return txt
|
||||
def QT_TRANSLATE_NOOP(ctxt,txt):
|
||||
return txt
|
||||
|
||||
Reference in New Issue
Block a user