def ensure_workdir_exists(context):
 ensure_context_attribute_exists(context, 'workdir', None)
 if (not context.workdir):
  context.workdir = os.path.abspath(WORKDIR)
 pathutil.ensure_directory_exists(context.workdir)

def ensure_workdir_exists ( context ) : ensure_context_attribute_exists ( context , 'workdir' , None ) if ( not context . workdir ) : context . workdir = os . path . abspath ( WORKDIR ) pathutil . ensure_directory_exists ( context . workdir )
ensures that the work directory exists .