<div dir="ltr">No. Works with dot.exe as well, but in my first project i only used "dot", and it worked fine. As i writed, i made a Ctr+c Ctr-V in the to the project nr2, and only gives error there<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Apr 19, 2013 at 7:28 PM, Curt Hagenlocher <span dir="ltr"><<a href="mailto:curt@hagenlocher.org" target="_blank">curt@hagenlocher.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I suspect your filename is wrong. Shouldn't it be something like "dot.exe"?</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 19, 2013 at 9:20 AM, Attila-Ors Kilyen <span dir="ltr"><<a href="mailto:kilyen.attila.ors@gmail.com" target="_blank">kilyen.attila.ors@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>
<p>I'm trying to execute "dot" (a graph drawer thing from <a href="http://www.graphviz.org/" rel="nofollow" target="_blank">www.graphviz.org</a>) form IronPython. Here is my code:</p>
<pre><code><span>import</span><span> clr
clr</span><span>.</span><span>AddReference</span><span>(</span><span>'System.Core'</span><span>)</span><span>
</span><span>import</span><span> </span><span>System</span><span>
clr</span><span>.</span><span>ImportExtensions</span><span>(</span><span>System</span><span>.</span><span>Reflection</span><span>)</span><span>
clr</span><span>.</span><span>ImportExtensions</span><span>(</span><span>System</span><span>.</span><span>Diagnostics</span><span>)</span><span>
</span><span>from</span><span> </span><span>System</span><span>.</span><span>Diagnostics</span><span> </span><span>import</span><span> </span><span>Process</span><span>
</span><span>from</span><span> </span><span>System</span><span>.</span><span>Reflection</span><span> </span><span>import</span><span> </span><span>Assembly</span><span>
</span><span>from</span><span> </span><span>System</span><span>.</span><span>IO </span><span>import</span><span> </span><span>*</span><span>
</span><span>if</span><span> __name__ </span><span>==</span><span> </span><span>"__main__"</span><span>:</span><span>
p </span><span>=</span><span> </span><span>Process</span><span>()</span><span>
p</span><span>.</span><span>StartInfo</span><span>.</span><span>UseShellExecute</span><span> </span><span>=</span><span> </span><span>False</span><span>
p</span><span>.</span><span>StartInfo</span><span>.</span><span>RedirectStandardOutput</span><span> </span><span>=</span><span> </span><span>True</span><span>
p</span><span>.</span><span>StartInfo</span><span>.</span><span>WorkingDirectory</span><span> </span><span>=</span><span> </span><span>"C:\\kod\\"</span><span>
p</span><span>.</span><span>StartInfo</span><span>.</span><span>FileName</span><span> </span><span>=</span><span> </span><span>'dot'</span><span>
p</span><span>.</span><span>StartInfo</span><span>.</span><span>Arguments</span><span> </span><span>=</span><span> </span><span>'-Tgif uj.gv -o mamammikasza.gif'</span><span>
p</span><span>.</span><span>Start</span><span>()</span><span>
p</span><span>.</span><span>WaitForExit</span><span>()</span><span>
egyString </span><span>=</span><span> p</span><span>.</span><span>StandardOutput</span><span>.</span><span>ReadToEnd</span><span>()</span><span>
</span><span>print</span><span> egyString
</span><span>print</span><span> p</span><span>.</span><span>ExitCode</span></code></pre>
<p>In my test project works fine. I copied to my real project (after all
I commented everything in main.py, only the this code remained) and
gives me this</p>
<pre><code><span>exceptions</span><span>.</span><span>WindowsError</span><span> occurred
</span><span>Message</span><span>:</span><span> </span><span>[</span><span>Errno</span><span> </span><span>22</span><span>]</span><span> </span><span>The</span><span> system cannot find the file specified</span></code></pre>
<p>at p.Start()
Please help.
I'm using VS 2010, .NET 4.0 IronPython (2.7.3 (2.7.0.40))</p><p>The "dot" was installed form msi provided by graphvis, and work fine from everywhere. <br></p>
</div></div>
<br></div></div>_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>