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
version Python 3.3.2 and 2.7.5, tkinter 8.5, pyqt 4.8.4, pygame 1.9.2 pre
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
User avatar
metulburr
 
Posts: 1108
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: 929
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 3 guests