From fde04ba08885d7130fd9f9e445de339958ea5189 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 22 Sep 2020 01:56:17 -0700 Subject: [PATCH] Use pathclass.cwd. --- fileprefix.py | 2 +- prune_shortcuts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fileprefix.py b/fileprefix.py index 461b871..4488e6c 100644 --- a/fileprefix.py +++ b/fileprefix.py @@ -32,7 +32,7 @@ def fileprefix( ctime=False, autoyes=False, ): - current_directory = pathclass.Path('.') + current_directory = pathclass.cwd() prefix = prefix.strip() if prefix == ':': diff --git a/prune_shortcuts.py b/prune_shortcuts.py index 1b6708b..58376e1 100644 --- a/prune_shortcuts.py +++ b/prune_shortcuts.py @@ -16,7 +16,7 @@ def prune_shortcuts(recurse=False, autoyes=False): if recurse: lnks = [file for file in spinal.walk_generator('.') if file.extension == 'lnk'] else: - lnks = pathclass.Path('.').glob('*.lnk') + lnks = pathclass.cwd().glob('*.lnk') stale = [] for lnk in lnks: