#NEWLINE# def _symlink_to_file_or_copy( self , path , dest ) : #NEWLINE# #INDENT# "Symlink from *dest* to the absolute version of *path*.\n\n        If symlinks aren't available, copy *path* to *dest* instead." #NEWLINE# if hasattr ( os , 'symlink' ) : #NEWLINE# #INDENT# path = os . path . abspath ( path ) #NEWLINE# log . debug ( ( 'creating symlink %s <- %s' % ( path , dest ) ) ) #NEWLINE# os . symlink ( path , dest ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . debug ( ( 'copying %s -> %s' % ( path , dest ) ) ) #NEWLINE# shutil . copyfile ( path , dest )