TOOLS
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import sys
|
||||
import json
|
||||
import os
|
||||
import io
|
||||
|
||||
# Force UTF-8 for stdout/stderr to avoid encoding issues on Windows
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8')
|
||||
|
||||
# Add project root to sys.path
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
|
||||
Reference in New Issue
Block a user