Use pathclass.cwd.

This commit is contained in:
voussoir 2020-09-22 01:56:17 -07:00
parent 3564918a49
commit fde04ba088
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ def fileprefix(
ctime=False,
autoyes=False,
):
current_directory = pathclass.Path('.')
current_directory = pathclass.cwd()
prefix = prefix.strip()
if prefix == ':':

View file

@ -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: