update pyThStat

This commit is contained in:
Alex38Lyon committed 2026-10-26 23:22:59 +01:00
1 parent e854071bbe
commit f321c7fbe5
42 files changed
+148086 -170405

No files matched your search

+9 -5
View File
@@ -9,7 +9,11 @@ Alex 2026 01 09
"""
import os, logging, sys, re, unicodedata
import logging
import os
import re
import sys
import unicodedata
from pathlib import Path
log = logging.getLogger("Logger")
@@ -207,12 +211,12 @@ def safe_relpath(path, base_dir=None, max_depth=3, max_name_len=50, prefix="~"):
try:
path = Path(path).expanduser().resolve()
except Exception:
except Exception: # noqa: BLE001
return str(path)
try:
base = Path(base_dir).expanduser().resolve() if base_dir else Path.cwd().resolve()
except Exception:
except Exception: # noqa: BLE001
base = None
name = path.name or str(path)
@@ -226,7 +230,7 @@ def safe_relpath(path, base_dir=None, max_depth=3, max_name_len=50, prefix="~"):
parts = list(rel.parts)
else:
raise ValueError
except Exception:
except Exception: # noqa: BLE001
parts = list(path.parts)
if not parts:
@@ -241,5 +245,5 @@ def safe_relpath(path, base_dir=None, max_depth=3, max_name_len=50, prefix="~"):
try:
return os.path.join(*parts)
except Exception:
except Exception: # noqa: BLE001
return name
+1 -5
View File
@@ -6,11 +6,7 @@
!#############################################################################################!
"""
Version = "2026.10.18"
#################################################################################################
Version = "2026.10.26"
# error_count = 0 # Compteur d'erreurs
debug_log = False
outputFilename = "readme"