I am sorry I have no sample code or anything, I just need some information on how could I do this. I am developing a c# application that uses addons/plugins etc. I want thos addons/plugins to be Python scripts. How could I possibly achieve this? Thanks.
Asked
Active
Viewed 1,014 times
1
-
possible duplicate of [run a python script from c#](http://stackoverflow.com/questions/11779143/run-a-python-script-from-c-sharp) – siva.k Jan 18 '15 at 23:22
-
That's not what I want, that code is executing the python script, I want to use python script as a plugin for my c# application. – TheNeosrb Jan 18 '15 at 23:25
1 Answers
0
Take a look at IronPython. It's essentially Python for .NET (assuming you're using .NET rather than Mono, although that may work too).

OMGtechy
- 7,935
- 8
- 48
- 83
-
The main application is developed in c#, only small part of it is developed in Python, and that part is a plugin. Every script will be individual plugin. – TheNeosrb Jan 18 '15 at 23:23
-
-
Yes, I know how to execute python script in my c# application, the thing I don't know is how to reference all scripts from a folder? I don't know if I wrote that right. I have a folder where all scripts/plugins are stored and my application needs to lad them on launch. – TheNeosrb Jan 18 '15 at 23:27
-
@TheNeosrb: "I don't know is how to reference all scripts from a folder?" sounds like a C# programming question -- and perhaps the one you should be asking (or looking up in the C# documentation). – martineau Jan 19 '15 at 02:12