# HG changeset patch # User Paul Boddie # Date 1414277120 -7200 # Node ID ef57339a681e4c8b2666b1d2c41f2729c971b056 # Parent 1dbe146491d307f9f7cc795837631a5943ff4636 Moved configuration settings into a separate module. diff -r 1dbe146491d3 -r ef57339a681e imip_store.py --- a/imip_store.py Sat Oct 25 21:44:24 2014 +0200 +++ b/imip_store.py Sun Oct 26 00:45:20 2014 +0200 @@ -1,18 +1,11 @@ #!/usr/bin/env python from datetime import datetime +from imiptools.config import STORE_DIR, PUBLISH_DIR from os.path import abspath, commonprefix, exists, join, split from os import makedirs from vCalendar import iterwrite -# The location of the stored calendar information. - -STORE_DIR = "/var/lib/imip-agent/store" - -# The location of published static free/busy information. - -PUBLISH_DIR = "/var/www/imip-agent/static" - def check_dir(base, dir): return commonprefix([base, abspath(dir)]) == base diff -r 1dbe146491d3 -r ef57339a681e imiptools/config.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imiptools/config.py Sun Oct 26 00:45:20 2014 +0200 @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +# The location of the stored calendar information. + +STORE_DIR = "/var/lib/imip-agent/store" + +# The location of published static free/busy information. + +PUBLISH_DIR = "/var/www/imip-agent/static" + +# vim: tabstop=4 expandtab shiftwidth=4