#NEWLINE# def check_path( module_name , path ) : #NEWLINE# #INDENT# 'Checks if a directory or file exisits.\n\n    :param module_name   : module name to be checked\n    :type module_name    : string\n    :param path          : path of the directory of file\n    :type path           : string\n\n    ' #NEWLINE# err_msg = '' #NEWLINE# if ( not os . path . exists ( path ) ) : #NEWLINE# #INDENT# err_msg = ( '[%s]Error: %s does not exist, please check your configurations.' % ( module_name , path ) ) #NEWLINE# #UNINDENT# return path