It's probably an artifact of my ignorance but I'm having problems trying to use and understand TCC support for Python.
The example in TCC Help and a naive attempt to use @Python give the following results:
For a simple Python installation sanity check I then tried running a classic Python program.
with the following result:
Then I checked to see if a Python program with a .py extension would be detected by TCC and passed to the Python interpreter for execution:
and got the following result:
FWIW I get the same results on Windows 10.
I would greatly appreciate any explanation of my mistakes(?) or tips on how to successfully use Python with TCC.
TIA
TCC 33.00.20 x64 Windows 11 [Version 10.0.26100.2605]
$which python
python is an external : C:\Program Files\Python313\python.exe
$python --version
Python 3.13.1
$echo %@python[print("Printing from Python")]
0
$echo %@python[2 + 2]
0
Python:
# Hello World in Python
print("Hello World!")
$python Hello_World.py
Hello World!
$Hello_World.py
Faulting application name: tcc.exe, version: 33.0.20.0, time stamp: 0x6750e007
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000409
Fault offset: 0x00007ffd592a328f
Faulting process id: 0x4F7C
Faulting application start time: 0x1DB611EF5ABB9DD
Faulting application path: C:\Program Files\JPSoft\TCMD33\tcc.exe
Faulting module path: unknown
Report Id: 6753a96f-4b2f-4292-863a-e4d436df0168
Faulting package full name:
Faulting package-relative application ID:
I would greatly appreciate any explanation of my mistakes(?) or tips on how to successfully use Python with TCC.
TIA