Re: [Ironpython-users] Using coverage.py in IronPython app

2013-04-17 Thread Jackie Sproat
Anyone used coverage.py with IronPython. If I run from command line: C:\>ipy IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.17929 Type "help", "copyright", "credits" or "license" for more information. >>> import coverage :1: DeprecationWarning: object.__new__() takes no parameters >>> from coverage

Re: [Ironpython-users] WPF IronPython app used with dotCover (in TeamCity)

2013-04-15 Thread Jackie Sproat
Not sure where to start: I want to verify coverage of the DLL code which is accessed by my WPF-IronPython app. However, dotCover is reporting 0% coverage and all statements are showing as RED/uncovered, eventhough all the methods (interface APIs) are called while the WPF-IronPython app is runnin

[Ironpython-users] ipy.exe hangs after closing IronPython WFP application

2013-01-03 Thread Jackie Sproat
Here is the IronPython code I use to start and stop my app: Perhaps the ShutdownMode has something to do with ipy.exe hanging (which seems to suggest app is not shutting down properly!)? def Run_App_Threaded(): global evt evt = AutoResetEvent(False) print "initializing...

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
Thanks os.popen is working for me! From: Curt Hagenlocher [mailto:c...@hagenlocher.org] Sent: Wednesday, December 19, 2012 7:32 AM To: Jackie Sproat Cc: ironpython-users@python.org Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 Arg, bitten again by "

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
, 2012 4:23 PM To: Jackie Sproat Cc: ironpython-users@python.org Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 On Tue, Dec 18, 2012 at 1:54 PM, Jackie Sproat wrote: > However, using this with IronPython, results in Errno 22: The system cannot > find th

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Jackie Sproat
:03 PM To: Jackie Sproat Subject: Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22 I believe StartInfo.FileName really needs to be a file name, and not a command line. Set it to java.exe and put everything else into Arguments. On Tue, Dec 18, 2012 at 1:54 PM, Jackie

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-18 Thread Jackie Sproat
Using python I have no problem starting my process with subprocess.Popen('java -jar "C:\Program Files (x86)\Sikuli X\sikuli-script.jar" ' + finalname, shell=True) But, because the select module is not available, you can't use the subprocess module in IronPython. So, I have to use System.Diagno

Re: [Ironpython-users] Running IronPython WPF app on seperate thread

2012-12-14 Thread Jackie Sproat
Question: How do I run the IronPython wpf app on its own thread so I can check class variables (self.age, self._textBox1) while the application is running? Is it easier to use IronPython decorator (my Python @run_async doesn't work) or .NET Threading or IronPython threading (are STATHREADs suppo

[Ironpython-users] Type Error: not all arguments converted during string formatting

2012-12-13 Thread Jackie Sproat
Test.py works as expected with: Ø Python test.py Ø Ipy test.py Type Error: not all arguments converted during string formatting Why does os.system command work using python but not ironPython? Is there a workaround (that doesn't involve using subprocess.Popen (b/c the actual exe I need to ru

Re: [Ironpython-users] FW: IronPython WPF application

2012-12-11 Thread Jackie Sproat
Thank you Matt and everyone who responded! This was exactly what I was looking for! Cheers, Jackie From: Matt Ward [ward.m...@gmail.com] Sent: December 10, 2012 1:44 PM To: Jackie Sproat Cc: ironpython-users@python.org Subject: Re: [Ironpython-users] FW

[Ironpython-users] FW: IronPython WPF application

2012-12-10 Thread Jackie Sproat
I am simply trying to get the handle to a WPF window, but it doesn't seem to be working. I am as new to WPF as I am to IronPython so please forgive me :) >From what I have read I believe the handle is not getting set in __init__ >because it is only available at run_time(?) Therefore, have to ad