Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
Calling python script within C#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
test test
11y
16.6k
1
Reply
Hi Guys,
I am trying to call a python script within C#. I can call normal python scripts that do not require any arguments but my particular script requires one argument. I would greatly appreciate it if someone could help me out how to send an argument.
This is the code below:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "/usr/bin/python";
p.StartInfo.Arguments = "/path/to/pythonscript.py ";
p.Start();
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Telerik RAD Progress Area
combo add the collection select display grid but amount