Use pathclass.cwd.
This commit is contained in:
		
							parent
							
								
									3564918a49
								
							
						
					
					
						commit
						fde04ba088
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -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 == ':':
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue