From 3fdf564138e09500c54ed9b3b6f100dfd005efe3 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Wed, 22 Jan 2025 23:24:03 -0500 Subject: add installation path detection on plugin open --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index e340429..1111c53 100644 --- a/main.py +++ b/main.py @@ -121,4 +121,11 @@ class Plugin: return { "status": "error", "message": str(e) - } \ No newline at end of file + } + + async def check_fgmod_path(self) -> dict: + path = "/home/deck/fgmod/" + exists = os.path.exists(path) + return { + "exists": exists + } \ No newline at end of file -- cgit v1.2.3