Having removed self.spawn(other), add back Path(other).

This commit is contained in:
Ethan Dalool 2020-11-02 23:18:19 -08:00
parent 426da9b52b
commit d29501bae7

View file

@ -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 '.'