#NEWLINE# def get_root_path( self ) : #NEWLINE# #INDENT# name_parts = os . path . splitext ( suffix . path ) #NEWLINE# suffix = self . get_tags_string ( ) #NEWLINE# if ( not name_parts [ 0 ] . endswith ( suffix ) ) : #NEWLINE# #INDENT# raise Exception ( ( 'No root path found for resource variant %s' % self . path ) ) #NEWLINE# #UNINDENT# root_path = ( name_parts [ 0 ] [ : ( len ( name_parts [ 0 ] ) - len ( suffix ) ) ] + name_parts [ 1 ] ) #NEWLINE# if ( '~' in root_path ) : #NEWLINE# #INDENT# raise ValueError ( 'Filenames are not allowed to contain the tilde (~) character, except for specifying tags' ) #NEWLINE# #UNINDENT# return root_path