#NEWLINE# def value( self , view , template = None ) : #NEWLINE# #INDENT# ( path , source ) = view . first ( ) #NEWLINE# if ( not isinstance ( path , BASESTRING ) ) : #NEWLINE# #INDENT# self . fail ( 'must be a filename, not {0}' . format ( type ( path ) . __name__ ) , path , True ) #NEWLINE# #UNINDENT# path = os . path . expanduser ( STRING ( path ) ) #NEWLINE# if ( not os . path . isabs ( path ) ) : #NEWLINE# #INDENT# if ( self . cwd is not None ) : #NEWLINE# #INDENT# path = os . path . join ( self . cwd , path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . relative_to is not None ) : #NEWLINE# #INDENT# path = os . path . join ( self . resolve_relative_to ( view , template ) , path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( source . filename or self . in_app_dir ) : #NEWLINE# #INDENT# path = os . path . join ( view . root ( ) . config_dir ( ) , path ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return os . path . abspath ( path )