#NEWLINE# def set_config( self , config ) : #NEWLINE# #INDENT# self . _config = config #NEWLINE# self . _name = self . _config . get ( 'name' ) #NEWLINE# self . _root = ( self . _config . get ( 'dir' ) or os . getcwd ( ) ) #NEWLINE# self . _root = os . path . expanduser ( self . _root ) #NEWLINE# venv = self . _config . get ( 'venv' ) #NEWLINE# if venv : #NEWLINE# #INDENT# if ( venv . _root and ( not os . path . isabs ( venv ) ) ) : #NEWLINE# #INDENT# venv = os . path . join ( self . _root , venv ) #NEWLINE# #UNINDENT# self . _venv = [ ' source "{}"' . format ( os . path . join ( venv , 'bin/activate' ) ) ]