Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Python2.4
Hi All,
 

         I am looking for Python Interpreter to be compatible with my WPF Application, I need to support Python Scripts and execute the same, I have the working implementation of CINT (C/C++ Scripts),
 
Please find details   below,
     
1. The Python Interpreter module(wrapper) should co-exist with CINT Interpreter.(To elaborate, I have Script Window building C/C++ Scripts (using CINT interpreter), but it should also be able to handle Python Scripts (using Python Interpreter).
 
2. Less restrictions on License T & C (preferably of BSD or LGPL nature).
 

Environ: Window 7 O/S, SP1, VS 2008 IDE
 
Thanks in Advance,
 
With Regards,
VishalK_89
Posted 7-Feb-12 20:25pm
Edited 8-Feb-12 20:00pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

With a console Python application, it is possible to start it as a child process using System.Diagnostics.Process.Start and redirect output streams StandardOutput and StandardError, please see the code sample with redirection here: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput.aspx[^].
 
However, this is a pretty awkward way of doing things.
 
For seamless integration, I would look at Python for .NET:
http://pythonnet.sourceforge.net/readme.html[^].
 
—SA
  Permalink  
v3
Comments
Member 7985084 at 9-Feb-12 0:52am
   
Hi All,
 
Well, Thanks for the reply., I want to reframe the query further, In order to exactly meet my objective,
 
1. The Python Interpreter module(wrapper) should co-exist with CINT Interpreter.(To elaborate, I have Script Window building C/C++ Scripts (using CINT interpreter), but it should also be able to handle Python Scripts (Similar Interpreter).
2. Less restrictions on License T & C (preferably of BSD or LGPL nature).
 
Thanks in Advance,
 
With Regards,
VishalK_89

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 584
1 Maciej Los 275
2 DamithSL 233
3 Sergey Alexandrovich Kryukov 209
4 BillWoodruff 200
0 OriginalGriff 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 9 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100