Refactor logger setup and path handling

Moved sys.path modification from canvas_node.py to __init__.py for better package management. Improved logger formatting for colored output and enhanced file logging configuration with error handling for log directory creation. Added python/__init__.py to make the 'python' directory a package.
This commit is contained in:
Dariusz L
2025-06-28 01:26:33 +02:00
parent 375ed6a2b8
commit d8ebbeea1e
4 changed files with 45 additions and 18 deletions

4
python/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
# This file makes the 'python' directory a package.
from . import logger
__all__ = ['logger']