stash
This commit is contained in:
15
stash/config/plugins/community/PythonDepManager/flush.py
Normal file
15
stash/config/plugins/community/PythonDepManager/flush.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import log
|
||||
import shutil
|
||||
from deps import get_base_folder
|
||||
|
||||
|
||||
def flush_dependencies() -> None:
|
||||
"""Delete all dependencies in the base folder"""
|
||||
# get working directory
|
||||
plugin_folder = get_base_folder()
|
||||
log.info(f"Flushing dependencies from {plugin_folder}")
|
||||
shutil.rmtree(plugin_folder)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
flush_dependencies()
|
||||
Reference in New Issue
Block a user