From a2337346fb75436a8a7b125691886ee0897b7bae Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 12 Sep 2020 10:15:14 -0700 Subject: [PATCH] Add helpful pathclass.cwd function. --- voussoirkit/pathclass.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 86d930e..cdd374d 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -316,6 +316,9 @@ def common_path(paths, fallback): return fallback model = parent +def cwd(): + return pathclass.Path(os.getcwd()) + def get_path_casing(path): ''' Take what is perhaps incorrectly cased input and get the path's actual