diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-11-07 23:04:27 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-11-07 23:04:27 +0000 |
| commit | 3aeeda31a811db7a3839c5898ade7f8649f3dae9 (patch) | |
| tree | cbd533b55cd9803ed505c98c5d357f4ee3ac3562 | |
| parent | 7ae5975718eb57d333b50684325f612b00209d1f (diff) | |
Tweak for host:path outputs.
| -rwxr-xr-x | cdist | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -601,7 +601,10 @@ def main(): parser.add_argument('-w', '--work', help='override default work directory') args = parser.parse_args() - args.output = os.path.abspath(args.output) + if args.output.find(':') == -1: + # This isn't of the form host:path so make it absolute + args.output = os.path.abspath(args.output) + if args.work is not None: args.work = os.path.abspath(args.work) |
