C
C#3w ago
AceChewy

✅ Running Python Program from WPF

I'm struggling with running a python program from wpf. I've followed the documentation, but it seems like nothing is working. The python code works if run manually. I can also see python starting and using resources in the task manager
5 Replies
AceChewy
AceChewyOP3w ago
BlazeBin - qcbwjhzacbwo
A tool for sharing your source code with the world!
leowest
leowest3w ago
you cant just call a .py file and expect it runs in cmd you need to call your python executable + the .py file i.e.: python my_script.py
myProcess.FileName = "my/full/path/to/python.exe";
myProcess.Arguments = "my/full/path/to/my_script.py";
myProcess.FileName = "my/full/path/to/python.exe";
myProcess.Arguments = "my/full/path/to/my_script.py";
AceChewy
AceChewyOP2w ago
Ah Thanks I'll give it a go Managed to get it to work - appreciate the pointer
leowest
leowest2w ago
$close
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?