File size: 740 Bytes
55b63ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""Debug: test bpy_server chain import"""
import sys, os, traceback

print("[TEST] Step 1: import bpy")
try:
    import bpy
    print("[TEST]   OK: bpy imported")
except Exception as e:
    print(f"[TEST]   FAIL: {e}")
    traceback.print_exc()

print("[TEST] Step 2: import src.rig_package.parser.bpy")
try:
    from src.rig_package.parser.bpy import BpyParser
    print("[TEST]   OK: BpyParser imported")
except Exception as e:
    print(f"[TEST]   FAIL: {e}")
    traceback.print_exc()

print("[TEST] Step 3: import src.server.bpy_server")
try:
    from src.server.bpy_server import run
    print("[TEST]   OK: bpy_server imported")
except Exception as e:
    print(f"[TEST]   FAIL: {e}")
    traceback.print_exc()

print("[TEST] DONE")