Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I wanted to know how do i pass values from c# window forms into a python script. I am trying to use replace the values in the python script from my c# window forms and then run the python script with the newly replaced values. Any idea how?
Posted

1 solution

Hi,

I never tried that.

Here is way to do the same : http://stackoverflow.com/questions/11779143/run-a-python-script-from-c-sharp[^]

Just before running it replace the string.
 
Share this answer
 
Comments
Dango123 4-Jul-14 3:47am    
Hi, what do you mean by replace the string? because i need to replace values in a specific line and location in the python script.

Example : Line 86,

CropFace(image, eye_left=(34,51), eye_right=(50,52), offset_pct=(0.3,0.3), dest_sz=(92,112)).save("C:\\Users\\L31101\\Desktop\\testcrop.jpg")

Im changing the coordinates for eye_left=(x,x) and eye_right=(x,x).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900