Re: [IronPython] import subprocess

2007-07-05 Thread Eric.Wyler
Matt, I had the same problem and ended up solving it by using System.Diagnostics.Process instead of subprocess. As far as I know, subprocess doesn't work under IronPython. I don't remember all of the reasons as to why it doesn't work, but, for example, os.pipe doesn't exist under IronPython l

[IronPython] Valid regex under CPython won't compile under IronPython

2007-06-14 Thread Eric.Wyler
#test.py import re # The below line fails under IronPython 1.1 (but works under Cpython) regex = re.compile( r"^(?PNMAKE[A-Za-z0-9]*)'\"?(?P[\\A-Za-z0-9/:_\.\+]+)" ) if regex.search( r"NMAKE0119'adirectory\afile.txt" ): print 'good' else: print 'bad' ---