From c1465098f029337c440f95913e3df406b79df5f9 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sat, 14 Feb 2026 05:53:31 -0500 Subject: [PATCH] [FIX] script todo import first time --- script/execute/execute.py | 5 ++++- script/todo/todo.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/execute/execute.py b/script/execute/execute.py index 89f0041..adb7c43 100644 --- a/script/execute/execute.py +++ b/script/execute/execute.py @@ -10,7 +10,10 @@ import subprocess import sys import time -import humanize +try: + import humanize +except ImportError: + humanize = None cst_venv_erplibre = ".venv.erplibre" diff --git a/script/todo/todo.py b/script/todo/todo.py index 4751b38..8ebb63f 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -39,6 +39,8 @@ STRINGS_FILE = os.path.join( ) GRADLE_FILE = os.path.join(MOBILE_HOME_PATH, ANDROID_DIR, "app/build.gradle") +from script.execute import execute + try: import tkinter as tk from tkinter import filedialog @@ -55,7 +57,6 @@ try: import todo_upgrade from pykeepass import PyKeePass - from script.execute import execute except ModuleNotFoundError as e: humanize = None ENABLE_CRASH = True