From 5ab5642de5b7fe726fe7c7ebe07820382f8b0770 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sun, 15 Jun 2025 23:59:14 -0400 Subject: [PATCH] [IMP] script selenium accept private execution - erplibre private repertory for user private configuration - move todo_override to private/todo.json - selenium moving script --- .gitignore | 1 - private/TODO.md | 1 + private/__init__.py | 0 script/selenium/selenium_lib.py | 2 +- script/todo/README.md | 2 +- script/todo/todo.py | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 private/TODO.md create mode 100644 private/__init__.py diff --git a/.gitignore b/.gitignore index f9db17e..2bf95fd 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,3 @@ requirements.txt requirement/ignore_requirements.txt screenshots screencasts -script/todo/todo_override.json diff --git a/private/TODO.md b/private/TODO.md new file mode 100644 index 0000000..068db6f --- /dev/null +++ b/private/TODO.md @@ -0,0 +1 @@ +Move your private file and project configuration here. The docker will share a volume with this repertory. diff --git a/private/__init__.py b/private/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/script/selenium/selenium_lib.py b/script/selenium/selenium_lib.py index a71c62f..d802867 100644 --- a/script/selenium/selenium_lib.py +++ b/script/selenium/selenium_lib.py @@ -34,7 +34,7 @@ from selenium.webdriver.support.ui import WebDriverWait # TODO maybe use TODO lib CONFIG_FILE = "./script/todo/todo.json" -CONFIG_OVERRIDE_FILE = "./script/todo/todo_override.json" +CONFIG_OVERRIDE_FILE = "./private/todo.json" LOGO_ASCII_FILE = "./script/todo/logo_ascii.txt" diff --git a/script/todo/README.md b/script/todo/README.md index 983796d..245167c 100644 --- a/script/todo/README.md +++ b/script/todo/README.md @@ -1,4 +1,4 @@ TODO is an assistant robot to use ERPLibre Execute it with `./script/todo/todo.py` or `make todo`. -For a new project, copy todo_example.json to todo_override.json and edit it. +For a new project, copy todo_example.json to private/todo.json and edit it. diff --git a/script/todo/todo.py b/script/todo/todo.py index de1c700..b78b87a 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -87,7 +87,7 @@ except ModuleNotFoundError as e: _logger = logging.getLogger(__name__) CONFIG_FILE = "./script/todo/todo.json" -CONFIG_OVERRIDE_FILE = "./script/todo/todo_override.json" +CONFIG_OVERRIDE_FILE = "./private/todo.json" LOGO_ASCII_FILE = "./script/todo/logo_ascii.txt"