Changeset 105

Show
Ignore:
Timestamp:
07/23/06 13:19:21 (2 years ago)
Author:
mk
Message:

Removed unused config module.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/cheesecake/cheesecake_index.py

    r104 r105  
    3737from util import StdoutRedirector 
    3838from util import time_function 
    39 from config import get_pkg_config 
    4039from codeparser import CodeParser 
    4140 
     
    10861085    } 
    10871086 
    1088     def __init__(self, name="", url="", path="", sandbox=None, config=None, 
     1087    def __init__(self, name="", url="", path="", sandbox=None, 
    10891088                 logfile=None, verbose=False, quiet=False, static_only=False, 
    10901089                 lite=False): 
     
    11101109            os.mkdir(self.sandbox) 
    11111110 
    1112         self.config = config 
    11131111        self.verbose = verbose 
    11141112        self.quiet = quiet 
     
    11851183        if remove_log_file: 
    11861184            os.unlink(os.path.join(self.sandbox, self.logfile)) 
    1187  
    1188     def set_defaults(self): 
    1189         """Set default values for variables that can also be defined 
    1190         in the config file. 
    1191         """ 
    1192         pass 
    1193  
    1194     def get_config(self, config_dir=None): 
    1195         """Retrieve values from configuration file. 
    1196         """ 
    1197         pass 
    11981185 
    11991186    def configure_logging(self, logfile=None): 
     
    15451532    """ 
    15461533    parser = OptionParser() 
    1547     parser.add_option("-c", "--config", dest="config", 
    1548                       default=None, 
    1549                       help="directory with custom configuration (default=~/.cheesecake)") 
    15501534    parser.add_option("--lite", action="store_true", dest="lite", 
    15511535                      default=False, help="don't run time-consuming tests (default=False)") 
     
    15811565    path = options.path 
    15821566    sandbox = options.sandbox 
    1583     config = options.config 
    15841567    logfile = options.logfile 
    15851568    verbose = options.verbose 
     
    15941577    try: 
    15951578        c = Cheesecake(name=name, url=url, path=path, sandbox=sandbox, 
    1596                        config=config, logfile=logfile, verbose=verbose, 
     1579                       logfile=logfile, verbose=verbose, 
    15971580                       quiet=quiet, static_only=static_only, lite=lite) 
    15981581        c.compute_cheesecake_index()