Move some rarely used import statements closer to where they are needed

Former-commit-id: a4785c178b5da044d1cf2ec2ecb2868ed8e3e877 [formerly 74f9f616f3]
Former-commit-id: c7c06f402627cc0169ed9e654086e89123639902
This commit is contained in:
2022-11-26 14:05:19 -05:00
parent 574637392a
commit b8dc5c4f89
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
from os import listdir, remove, walk
from os.path import expanduser
from shutil import rmtree
def delete(_file_path, _target_database): # deletes an entry or folder
from shutil import rmtree
try:
if _file_path.endswith('/'):
rmtree(f"{expanduser('~/.local/share/sshyp/')}{_file_path}")