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)
2.1 --- a/tools/set_quota_limit.py Thu Apr 21 00:58:18 2016 +0200
2.2 +++ b/tools/set_quota_limit.py Thu Apr 21 16:34:27 2016 +0200
2.3 @@ -19,7 +19,7 @@
2.4 this program. If not, see <http://www.gnu.org/licenses/>.
2.5 """
2.6
2.7 -from os.path import split
2.8 +from os.path import abspath, split
2.9 import sys
2.10
2.11 # Find the modules.
2.12 @@ -27,7 +27,7 @@
2.13 try:
2.14 import imiptools
2.15 except ImportError:
2.16 - parent = split(split(__file__)[0])[0]
2.17 + parent = abspath(split(split(__file__)[0])[0])
2.18 if split(parent)[1] == "imip-agent":
2.19 sys.path.append(parent)
2.20
3.1 --- a/tools/update_quotas.py Thu Apr 21 00:58:18 2016 +0200
3.2 +++ b/tools/update_quotas.py Thu Apr 21 16:34:27 2016 +0200
3.3 @@ -19,7 +19,7 @@
3.4 this program. If not, see <http://www.gnu.org/licenses/>.
3.5 """
3.6
3.7 -from os.path import split
3.8 +from os.path import abspath, split
3.9 import sys
3.10
3.11 # Find the modules.
3.12 @@ -27,7 +27,7 @@
3.13 try:
3.14 import imiptools
3.15 except ImportError:
3.16 - parent = split(split(__file__)[0])[0]
3.17 + parent = abspath(split(split(__file__)[0])[0])
3.18 if split(parent)[1] == "imip-agent":
3.19 sys.path.append(parent)
3.20