k2tools.config (version 1.00.000 $Rev: 12 $, $Date: 2013-06-28 14:02:35 +0200 (Fr, 28 Jun 2013) $)
index
y:\server\csgo\csgo\addons\source-python\_libs\k2tools\config.py

Path     addons/source-python/_libs/k2tools/config.py
Name     General Purpose Config Tools
Version  1.00.000
Revision $Rev: 12 $
Author   (C) [#OMEGA] - K2
 
 
INFO
 
This libary is just a collection of rather generic useful config classes and 
tools that I use in my scripts. You can feel free to use them in your own 
aswell.
 
 
AGREEMENT
 
See addons/source-python/_libs/k2tools/license.txt

 
Classes
       
builtins.Exception(builtins.BaseException)
ConfigError

 
class ConfigError(builtins.Exception)
    
Method resolution order:
ConfigError
builtins.Exception
builtins.BaseException
builtins.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from builtins.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from builtins.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args

 
Functions
       
load(cfgpath, validatepath, errorlogfile='')
Loads the specified skill config and runs config verifcation.
 
Returns ConfigObj on success
Raises ConfigError on failure
 
@cfgpath      - Path of the config file
@validatepath - Path of the validation file
@errorlogfile - Path of the error log file
update(cfg, cfgspec=None)
Updates the specific config files while also keeping the comments
 
@cfg     - ConfigObj instance
@cfgspec - ConfigObj instance to act as config specification

 
Data
        __all__ = ['ConfigError', 'load', 'update']

 
Author
        [#OMEGA] - K2