diff --git a/python/GafferSceneTest/MeshSegmentsTest.py b/python/GafferSceneTest/MeshSegmentsTest.py index f0b39f1d5fa..1850747976a 100644 --- a/python/GafferSceneTest/MeshSegmentsTest.py +++ b/python/GafferSceneTest/MeshSegmentsTest.py @@ -35,7 +35,7 @@ # ########################################################################## -import pathlib +import os import unittest import six @@ -54,8 +54,7 @@ class MeshSegmentsTest( GafferSceneTest.SceneTestCase ) : def testSampleFile( self ) : r = GafferScene.SceneReader() - # /todo - remove str() when merging to main - r["fileName"].setValue( str( pathlib.Path( __file__ ).parent / "usdFiles" / "segmentTestMesh.usd" ) ) + r["fileName"].setValue( os.path.join( os.path.dirname( __file__ ), "usdFiles", "segmentTestMesh.usd" ) ) f = GafferScene.PathFilter() f["paths"].setValue( IECore.StringVectorData( [ "/plane" ] ) )