From d6f336d84b8b00161a688d4b39b82165a3ebe1f3 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Tue, 25 Apr 2023 05:12:42 +0200 Subject: Feat/configurable paths (#404) --- backend/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/helpers.py') diff --git a/backend/helpers.py b/backend/helpers.py index 668a252d..b2464e8b 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -36,9 +36,9 @@ async def csrf_middleware(request, handler): return await handler(request) return Response(text='Forbidden', status='403') -# Get the default homebrew path unless a home_path is specified +# Get the default homebrew path unless a home_path is specified. home_path argument is deprecated def get_homebrew_path(home_path = None) -> str: - return os.path.join(home_path if home_path != None else localplatform.get_home_path(), "homebrew") + return localplatform.get_unprivileged_path() # Recursively create path and chown as user def mkdir_as_user(path): -- cgit v1.2.3