lunch
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
if p not in sys.path:
|
| 22 |
sys.path.insert(0, p)
|
| 23 |
|
| 24 |
-
# DEBUG: show search paths and
|
| 25 |
print("[PATH-CHECK] sys.path[:8] =", sys.path[:8], flush=True)
|
| 26 |
print(
|
| 27 |
"[PATH-CHECK] exists(third_party/matanyone/matanyone) =",
|
|
@@ -34,6 +34,17 @@
|
|
| 34 |
flush=True,
|
| 35 |
)
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
import gradio as gr
|
| 38 |
|
| 39 |
# -----------------------------------------------------------------------------
|
|
|
|
| 21 |
if p not in sys.path:
|
| 22 |
sys.path.insert(0, p)
|
| 23 |
|
| 24 |
+
# DEBUG: show search paths and package presence
|
| 25 |
print("[PATH-CHECK] sys.path[:8] =", sys.path[:8], flush=True)
|
| 26 |
print(
|
| 27 |
"[PATH-CHECK] exists(third_party/matanyone/matanyone) =",
|
|
|
|
| 34 |
flush=True,
|
| 35 |
)
|
| 36 |
|
| 37 |
+
# DEBUG: try importing MatAnyone and show its location
|
| 38 |
+
try:
|
| 39 |
+
import matanyone # noqa: F401
|
| 40 |
+
import inspect
|
| 41 |
+
import os as _os
|
| 42 |
+
print("[MATANY] import OK from:", _os.path.dirname(inspect.getfile(matanyone)), flush=True)
|
| 43 |
+
except Exception as e:
|
| 44 |
+
import sys as _sys
|
| 45 |
+
print("[MATANY] import FAILED:", repr(e), flush=True)
|
| 46 |
+
print("[MATANY] sys.path (full) =>", _sys.path, flush=True)
|
| 47 |
+
|
| 48 |
import gradio as gr
|
| 49 |
|
| 50 |
# -----------------------------------------------------------------------------
|