14 lines
463 B
Python
14 lines
463 B
Python
# -*- coding: utf-8 -*-
|
|
import subprocess
|
|
import sys
|
|
|
|
PY = r"C:\Users\wps18\.workbuddy\binaries\python\envs\default\Scripts\python.exe"
|
|
CWD = r"D:\2026-09-09-task-18\po_app"
|
|
|
|
p = subprocess.run([PY, "-c", "import app; print('IMPORT OK')"], cwd=CWD,
|
|
capture_output=True, text=True, encoding="utf-8", errors="replace",
|
|
timeout=60)
|
|
print("RC", p.returncode)
|
|
print("STDOUT:", p.stdout[-4000:])
|
|
print("STDERR:", p.stderr[-4000:])
|