#NEWLINE# def projectpath_check( path ) : #NEWLINE# #INDENT# path = os . path . abspath ( path ) #NEWLINE# if os . path . isdir ( path ) : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# msg = '"{0}" is not a valid directory path.' . format ( path ) #NEWLINE# raise argparse . ArgumentTypeError ( path )