From 575fc306808ea5e69712e40889a34cf2fdf90586 Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Fri, 8 Aug 2008 11:35:04 +0200 Subject: Make backup.rootpath = "" when user defines fullpath. This is more an esthetic change. Now, when the user defines the fullpath the rootpath will be "" and not have some other value that does not relate to the fullpath. --- pyfirstaidkit/interpret.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py index 8817b04..a79ce0f 100644 --- a/pyfirstaidkit/interpret.py +++ b/pyfirstaidkit/interpret.py @@ -49,6 +49,10 @@ class Tasker: self._reporting = reporting if backups is None: + if fullpath: + # rootpath is silly if fullpath is set by user. + cfg.backup.rootpath = "" + self._backups = FileBackupStore(rootpath = cfg.backup.rootpath, fullpath = cfg.backup.fullpath) cfg.backup.fullpath = self._backups._path -- cgit