mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-12 19:41:51 -05:00
Add PythonDepManager plugin (#563)
This commit is contained in:
15
plugins/PythonDepManager/flush.py
Normal file
15
plugins/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