Upload 127 files
Browse files
hugging/td_lang/executor.py
CHANGED
|
@@ -156,9 +156,11 @@ class TDExecutor:
|
|
| 156 |
|
| 157 |
try:
|
| 158 |
result = subprocess.run(
|
| 159 |
-
[sys.executable, str(py_path)],
|
| 160 |
capture_output=False, # Let output stream to console
|
| 161 |
-
|
|
|
|
|
|
|
| 162 |
)
|
| 163 |
|
| 164 |
if result.returncode == 0:
|
|
|
|
| 156 |
|
| 157 |
try:
|
| 158 |
result = subprocess.run(
|
| 159 |
+
[sys.executable, str(py_path.resolve())],
|
| 160 |
capture_output=False, # Let output stream to console
|
| 161 |
+
# Run from the original working directory, NOT the output dir.
|
| 162 |
+
# The compiled code uses relative paths like "td_lang_outputs/..."
|
| 163 |
+
# which must resolve from the project root.
|
| 164 |
)
|
| 165 |
|
| 166 |
if result.returncode == 0:
|
hugging/td_lang/td_lang/executor.py
CHANGED
|
@@ -156,9 +156,8 @@ class TDExecutor:
|
|
| 156 |
|
| 157 |
try:
|
| 158 |
result = subprocess.run(
|
| 159 |
-
[sys.executable, str(py_path)],
|
| 160 |
capture_output=False, # Let output stream to console
|
| 161 |
-
cwd=str(py_path.parent), # Run from output directory
|
| 162 |
)
|
| 163 |
|
| 164 |
if result.returncode == 0:
|
|
|
|
| 156 |
|
| 157 |
try:
|
| 158 |
result = subprocess.run(
|
| 159 |
+
[sys.executable, str(py_path.resolve())],
|
| 160 |
capture_output=False, # Let output stream to console
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
if result.returncode == 0:
|