From 58de3abbb575e382f52bc550bae00bf835c6ccd7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me?= Date: Tue, 10 Nov 2020 15:44:02 +0100 Subject: [PATCH] "/tmp" deleted in TestFillet_MultiRadius --- src/ConnectorAPI/Test/TestFillet_MultiRadius.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ConnectorAPI/Test/TestFillet_MultiRadius.py b/src/ConnectorAPI/Test/TestFillet_MultiRadius.py index 3ebe363b3..cb9ff3144 100644 --- a/src/ConnectorAPI/Test/TestFillet_MultiRadius.py +++ b/src/ConnectorAPI/Test/TestFillet_MultiRadius.py @@ -72,7 +72,8 @@ def testFillet_constant_radius_onsolids(): Fillet_1 = model.addFillet(Part_1_doc, [model.selection("SOLID", "Box_1_1")], 2) ### Create Export - Export_1 = model.exportToXAO(Part_1_doc, '/tmp/shaper_exp_cglb.xao', model.selection("SOLID", "Fillet_1_1"), 'XAO') + file_path = os.path.join(os.getenv("DATA_DIR"), "shaper_exp.xao") + Export_1 = model.exportToXAO(Part_1_doc, file_path, model.selection("SOLID", "Fillet_1_1"), 'XAO') model.end() @@ -89,7 +90,8 @@ def testFillet_constant_radius_onsolids(): OZ = geompy.MakeVectorDXDYDZ(0, 0, 1) # where we import the fillet from SHAPER and get its basic properties - (imported, Fillet_1_1, [], [], []) = geompy.ImportXAO("/tmp/shaper_exp_cglb.xao") + file_path = os.path.join(os.getenv("DATA_DIR"), "shaper_exp.xao") + (imported, Fillet_1_1, [], [], []) = geompy.ImportXAO(file_path) geompy.addToStudy( O, 'O' ) geompy.addToStudy( OX, 'OX' ) geompy.addToStudy( OY, 'OY' ) -- 2.39.2