Exemple #1
0
def get_ini_config(config=os.path.join(os.path.expanduser('~'), '.zdeskcfg'),
        default_section=None, section=None):
    """This is a convenience function for getting the zdesk configuration
    from an ini file without the need to decorate and call your own function.
    Handy when using zdesk and zdeskcfg from the interactive prompt."""
    plac_ini.call(__placeholder__, config=config, default_section=default_section)
    return __placeholder__.getconfig(section)
Exemple #2
0
def call(obj, config=os.path.join(os.path.expanduser('~'), '.zdeskcfg'), section=None):
    plac_ini.call(obj, config=config, default_section=section)
Exemple #3
0
def call(obj, config=os.path.join(os.path.expanduser('~'), '.zdeskcfg'),
         section=None, eager=True):
    return plac_ini.call(obj, config=config, default_section=section, eager=eager)
Exemple #4
0
def call(obj,
         config=os.path.join(os.path.expanduser('~'), '.zdeskcfg'),
         section=None):
    plac_ini.call(obj, config=config, default_section=section)