1.1 --- a/tools/make_freebusy.py Thu Apr 21 00:58:18 2016 +0200
1.2 +++ b/tools/make_freebusy.py Thu Apr 21 16:34:27 2016 +0200
1.3 @@ -21,7 +21,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 -from os.path import split
1.8 +from os.path import abspath, split
1.9 import sys
1.10
1.11 # Find the modules.
1.12 @@ -29,7 +29,7 @@
1.13 try:
1.14 import imiptools
1.15 except ImportError:
1.16 - parent = split(split(__file__)[0])[0]
1.17 + parent = abspath(split(split(__file__)[0])[0])
1.18 if split(parent)[1] == "imip-agent":
1.19 sys.path.append(parent)
1.20
1.21 @@ -182,13 +182,18 @@
1.22 user = participants[0]
1.23 except IndexError:
1.24 print >>sys.stderr, """\
1.25 -Usage: %s <user> [ <other user> ] <options>
1.26 +Usage: %s <user> [ <other user> ] [ <options> ]
1.27
1.28 Need a user and an optional participant (if different from the user),
1.29 along with the -s option if updating the store and the published details.
1.30 -Specify -n to include objects with PARTSTAT of NEEDS-ACTION.
1.31 -Specify -r to inspect all objects, not just those expected to provide details.
1.32 -Specify -v for additional messages on standard error.
1.33 +
1.34 +Specific options:
1.35 +
1.36 +-s Update the store and published details (write details to standard output
1.37 + otherwise)
1.38 +-n Include objects with PARTSTAT of NEEDS-ACTION
1.39 +-r Inspect all objects, not just those expected to provide details
1.40 +-v Show additional messages on standard error
1.41
1.42 General options:
1.43
1.44 @@ -218,7 +223,7 @@
1.45 journal_dir = getvalue(journal_dir)
1.46 preferences_dir = getvalue(preferences_dir)
1.47
1.48 - # Obtain store-related objects.
1.49 + # Obtain store-related objects or delegate this to the Client initialiser.
1.50
1.51 store = get_store(store_type, store_dir)
1.52 publisher = get_publisher(publishing_dir)