def make_output_dir(outdir):
 try:
  if (not os.path.exists(os.path.abspath(outdir))):
   logger.debug(u'Creating %s', outdir)
   os.makedirs(outdir)
 except OSError:
  logger.debug(u'Problem creating %s', outdir)
  if (not os.path.exists(outdir)):
   raise OSError(u'Could not create %s', outdir)
 return outdir

def make_output_dir ( outdir ) : try : if ( not os . path . exists ( os . path . abspath ( outdir ) ) ) : logger . debug ( u'Creating %s' , outdir ) os . makedirs ( outdir ) except OSError : logger . debug ( u'Problem creating %s' , outdir ) if ( not os . path . exists ( outdir ) ) : raise OSError ( u'Could not create %s' , outdir ) return outdir
make the output_dir if it doesnt exist .