(self)
Creates/Alters configuration file.
Creates/Alters configuration file.
Creates / Alters configuration file .
def SetupConfig(self):
    """Creates/Alters configuration file."""
    if os.path.exists(os.path.join(os.getcwd(), 'chi.config')):
      self.ReadConfig()
      (webserver, pkgsource) = self.ConfigQuestionnaire()
    else:
      (webserver, pkgsource) = self.ConfigQuestionnaire()
      f = open(os.path.join(os.getcwd(), 'chi.config'), 'w')
      content = 'webserver=%s\npkgsource=%s' % (webserver, pkgsource)
      f.write(content)
      f.close()
def SetupConfig ( self ) : if os . path . exists ( os . path . join ( os . getcwd ( ) , 'chi.config' ) ) : self . ReadConfig ( ) ( webserver , pkgsource ) = self . ConfigQuestionnaire ( ) else : ( webserver , pkgsource ) = self . ConfigQuestionnaire ( ) f = open ( os . path . join ( os . getcwd ( ) , 'chi.config' ) , 'w' ) content = 'webserver=%s\npkgsource=%s' % ( webserver , pkgsource ) f . write ( content ) f . close ( )