From 3af6068dce8c399dd0ed99262af192b6e7191d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 20 Nov 2023 23:52:01 +0100 Subject: [PATCH] fix: allow to run the scripts from anywhere --- lookyloo/default/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lookyloo/default/__init__.py b/lookyloo/default/__init__.py index 169577bf..274658fd 100644 --- a/lookyloo/default/__init__.py +++ b/lookyloo/default/__init__.py @@ -7,8 +7,12 @@ from .exceptions import LookylooException # noqa # and allow to update them easily. # You should not have to change anything in this file below this line. +import os # noqa + from .abstractmanager import AbstractManager # noqa from .exceptions import MissingEnv, CreateDirectoryException, ConfigError # noqa from .helpers import get_homedir, load_configs, get_config, safe_create_dir, get_socket_path, try_make_file # noqa + +os.chdir(get_homedir())