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, ctime=False,
autoyes=False, autoyes=False,
): ):
current_directory = pathclass.Path('.') current_directory = pathclass.cwd()
prefix = prefix.strip() prefix = prefix.strip()
if prefix == ':': if prefix == ':':

View file

@ -16,7 +16,7 @@ def prune_shortcuts(recurse=False, autoyes=False):
if recurse: if recurse:
lnks = [file for file in spinal.walk_generator('.') if file.extension == 'lnk'] lnks = [file for file in spinal.walk_generator('.') if file.extension == 'lnk']
else: else:
lnks = pathclass.Path('.').glob('*.lnk') lnks = pathclass.cwd().glob('*.lnk')
stale = [] stale = []
for lnk in lnks: for lnk in lnks: