views:

167

answers:

2

Hi,

I have some Python Scripts which I would like to use from my VB.NET class library however instead of increasing the amount of files that I distribute is it possible to embed the script into my project/dll in Visual Studio and then run the script from the dll during my program runtime?

Thanks for any help.

Rob

+2  A: 

Yes, it is possible.

vartec
A: 

I believe you may be looking for this, but I am not sure. This is possible, however.

The link above shows you how to add the file/script as an embedded resource. If that isn't what you are after, vartec's post describes how to embed the python runtime directly.

Reed Copsey