#NEWLINE# def download_if_necessary( self ) : #NEWLINE# #INDENT# info_main ( 'Downloading {}' . format ( self . name ) ) #NEWLINE# user_dir = environ . get ( 'P4A_{}_DIR' . format ( self . name . lower ( ) ) ) #NEWLINE# if ( user_dir is not None ) : #NEWLINE# #INDENT# info ( 'P4A_{}_DIR is set, skipping download for {}' . format ( self . name , self . name ) ) #NEWLINE# return #NEWLINE# #UNINDENT# self . download ( )