call c# file using python

A forum for general discussion of the Python programming language.

call c# file using python

Postby shazz0020 » Tue Jan 21, 2014 1:51 pm

Hello

how can i call a C# file from python?
shazz0020
 
Posts: 2
Joined: Tue Jan 21, 2014 1:43 pm

Re: call c# file using python

Postby metulburr » Tue Jan 21, 2014 2:01 pm

One method would be to have the OS call the program via the subprocess module
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1362
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: call c# file using python

Postby micseydel » Wed Jan 22, 2014 12:47 am

I suspect IronPython has a way of doing so as well. Whether you want that or a subprocess will depend on your needs.
Join the #python-forum IRC channel on irc.freenode.net!
User avatar
micseydel
 
Posts: 1179
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA


Return to General Discussions

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests