X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=m_librarian%2Fconfig.py;h=9fff40781d63a58db98004704c0c2aa6deeac1d0;hp=cbf76b7aab2c8e168ae734d6b09f8055519c181d;hb=63bb5df8cf2595bbe106031911666fb7061a03aa;hpb=8fdf6aab492482fcacad9ce2ec764bdc5bf76590 diff --git a/m_librarian/config.py b/m_librarian/config.py index cbf76b7..9fff407 100755 --- a/m_librarian/config.py +++ b/m_librarian/config.py @@ -63,6 +63,10 @@ class ConfigWrapper(object): return default # Do not catch ValueError here, it must be propagated + def getpath(self, section, option, default=os.path.curdir): + path = self.get(section, option, default=default) + return os.path.expanduser(os.path.expandvars(path)) + def get_config(config_path=None): global _ml_config