from pathlib import Path
import subprocess

BASEDIR = Path(__file__).resolve().parent

configfile = BASEDIR.parent /"asset_entry.php"


result = subprocess.run(
    ["php", str(configfile)],
    capture_output=True,
    text=True
)

print(result.stdout)    