#NEWLINE# def __pathAndBookmarks( scriptWindow ) : #NEWLINE# #INDENT# bookmarks = GafferUI . Bookmarks . acquire ( scriptWindow , pathType = Gaffer . FileSystemPath , category = 'script' ) #NEWLINE# currentFileName = scriptWindow . scriptNode ( ) [ 'fileName' ] . getValue ( ) #NEWLINE# if currentFileName : #NEWLINE# #INDENT# path = Gaffer . FileSystemPath ( os . path . dirname ( os . path . abspath ( currentFileName ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# path = Gaffer . FileSystemPath ( bookmarks . getDefault ( scriptWindow ) ) #NEWLINE# #UNINDENT# path . setFilter ( Gaffer . FileSystemPath . createStandardFilter ( [ 'gfr' ] ) ) #NEWLINE# return ( path , currentFileName )