Hi everyone,<div><br></div><div>I'm pretty new to python, let alone Iron Python and of course I've bitten off more than I can chew. I'm trying to get our rendering client Deadline to run a post render job on the frame it's just finished rendering. I have already written a separate python script using python 2.6 that does the post render job manually, but in order to automate it I need to convert my existing script into Iron Python friendly code because that's what Deadline utilizes. </div>
<div><br></div><div>The existing script is works like this (I'm sure this is error loaded and obvious n00b script, so any input would be hugely appreciated):</div><div><div></div><div><span class="Apple-tab-span" style="white-space:pre"><br>
</span></div><div><font class="Apple-style-span" face="'courier new', monospace">converter = subprocess.Popen([r"C:/Program Files/Chaos Group/V-Ray/Maya 2011 for x64/bin/vrimg2exr.exe", inFile, outFile],stdout=subprocess.PIPE)<span class="Apple-tab-span" style="white-space:pre">                </span></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">print converter.communicate()[0]</font></div><div><br></div><div>The version of Iron Python that Deadline uses doesn't have the subprocess module built into it, and I don't really want to install Python 2.6 on the whole farm but if I need to, I need to. Any ideas on a similar method for opening and supplying an exe with two arguments that doesn't use the subprocess module??</div>
<div><br></div><div>I've been trying to get the <font class="Apple-style-span" face="'courier new', monospace">ScriptUtils.ExecuteCommandAndGetOutput() </font>to work, but it doesn't work like I'm expecting it to. I always wind up with "expected StringCollection, got String" or "got tuple"... </div>
<div><span class="Apple-tab-span" style="white-space:pre"><br></span></div><div>Really, any help would be amazing. Thanks</div><div>-B<span class="Apple-tab-span" style="white-space:pre">        </span></div></div><div><span class="Apple-tab-span" style="white-space:pre"><br>
</span></div>