Skip to content

Commit

Permalink
MeshSegmentsTest : Prefer pathlib to os.path
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Jan 30, 2023
1 parent 660697f commit 10e67ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/GafferSceneTest/MeshSegmentsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#
##########################################################################

import os
import pathlib
import unittest
import six

Expand All @@ -54,7 +54,7 @@ class MeshSegmentsTest( GafferSceneTest.SceneTestCase ) :
def testSampleFile( self ) :

r = GafferScene.SceneReader()
r["fileName"].setValue( os.path.join( os.path.dirname( __file__ ), "usdFiles", "segmentTestMesh.usd" ) )
r["fileName"].setValue( pathlib.Path( __file__ ).parent / "usdFiles" / "segmentTestMesh.usd" )

f = GafferScene.PathFilter()
f["paths"].setValue( IECore.StringVectorData( [ "/plane" ] ) )
Expand Down

0 comments on commit 10e67ba

Please sign in to comment.