watchme.config package

Module contents

Copyright (C) 2019 Vanessa Sochat.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

watchme.config.check_exists(filename)[source]

a general helper function to check for existence, and exit if not found.

watchme.config.generate_watcher_config(path, watcher_type=None)[source]

generate a watcher config, meaning a watcher folder in the watchme base folder.

Parameters:path (the path to the watcher repository)
watchme.config.get_configfile(name, base=None)[source]

return the full path to a specific watcher configuration

watchme.config.get_configfile_template()[source]

return the full path to the default configuration file

watchme.config.read_config(filename)[source]

use configparser to write a config object to filename

watchme.config.write_config(filename, config, mode='w')[source]

use configparser to write a config object to filename