pyserv.settings module

Pyserv default settings for server and daemon modes.

pyserv.settings.get_userdirs()[source]

Get platform-agnostic user directory paths via appdirs.

Return tuple:

logdir, piddir, docdir as Path objs

pyserv.settings.init_dirs(dirs)[source]

Check and create user dirs for logs and PID (doc root is assumed to already exist).

Parameters:

dirs – list of Path objs

pyserv.settings.platform_check()[source]

Check to see if we think we are POSIX.

Return bool:

True if POSIX, else False

pyserv.settings.show_uservars()[source]

Display defaults and (possibly) overridden host paths and environment variables.