diff --git a/AUTHORS.rst b/AUTHORS.rst index 0083832..146245f 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -13,6 +13,7 @@ In alphabetical order: - Markus Unterwaditzer - Michael Adler - Thomas Weißschuh +- Witcher01 Special thanks goes to: diff --git a/vdirsyncer/cli/fetchparams.py b/vdirsyncer/cli/fetchparams.py index ff675a9..3d15119 100644 --- a/vdirsyncer/cli/fetchparams.py +++ b/vdirsyncer/cli/fetchparams.py @@ -77,7 +77,10 @@ def _fetch_value(opts, key): def _strategy_command(*command): import subprocess - command = (expand_path(command[0]),) + command[1:] + # normalize path of every path member + # if there is no path specified then nothing will happen + command = map(expand_path, command) + try: stdout = subprocess.check_output(command, universal_newlines=True) return stdout.strip("\n")