#NEWLINE# def join_with_module_path( loader , node ) : #NEWLINE# #INDENT# ' define custom tag handler to join paths with the path of the marmot module ' #NEWLINE# module_path = os . path . dirname ( marmot . representations . tests . __file__ ) #NEWLINE# resolved = loader . construct_scalar ( node ) #NEWLINE# return os . path . join ( module_path , resolved )