diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-08-08 11:35:04 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-08-08 11:35:04 +0200 |
commit | 575fc306808ea5e69712e40889a34cf2fdf90586 (patch) | |
tree | f2d2f63744105a877250f8446dfdc1f1c1f8ff04 | |
parent | 5a0ae1c50be8e9f39478b688da175083cb4ef9f4 (diff) | |
download | firstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.tar.gz firstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.tar.xz firstaidkit-575fc306808ea5e69712e40889a34cf2fdf90586.zip |
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.
-rw-r--r-- | pyfirstaidkit/interpret.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |