Make root paths abspaths

* src_root_path and dst_root_path are now converted to abspaths when
initializing kittengroomer to avoid any weird issues with relative or misformed
paths
pull/14/head
Dan Puttick 2017-04-10 13:19:30 +02:00
parent 3e56787686
commit 5865ddd94d
1 changed files with 2 additions and 2 deletions

View File

@ -303,8 +303,8 @@ class KittenGroomerBase(object):
def __init__(self, src_root_path, dst_root_path):
"""Initialized with path to source and dest directories."""
self.src_root_path = src_root_path
self.dst_root_path = dst_root_path
self.src_root_path = os.path.abspath(src_root_path)
self.dst_root_path = os.path.abspath(dst_root_path)
def safe_rmtree(self, directory_path):
"""Remove a directory tree if it exists."""