mirror of https://github.com/CIRCL/PyCIRCLean
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 pathspull/14/head
parent
3e56787686
commit
5865ddd94d
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue