From d29501bae7e2ddcbda41a0ece300eb11adcfa8cb Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 2 Nov 2020 23:18:19 -0800 Subject: [PATCH] Having removed self.spawn(other), add back Path(other). --- voussoirkit/pathclass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 797ea24..6cf285f 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -221,6 +221,9 @@ class Path: return self.relative_to(os.getcwd()) def relative_to(self, other, simple=False): + if isinstance(other, str): + other = Path(other) + if self == other: return '.'