<div id="result_box" dir="ltr">Thanks Mathieu, working!!<br><br>Regards,<br>Paulo<br><br></div><br><br><div class="gmail_quote">2009/7/15 Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, Jul 13, 2009 at 6:27 PM, Paulo Henrique Junqueira<br>
<div class="im">Amorim<<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> Hi All,<br>
><br>
> My application is written in Python and uses the ITK 3.14<br>
> I am creating the executable with py2exe it.<br>
> The wrapper was created with the option WRAP_ITK_PYTHON<br>
> When I click the executable of my application the following error occurs.<br>
><br>
> Traceback (most recent call last):<br>
> File "invesalius.py", line 28, in <module><br>
> File "control.pyc", line 10, in <module><br>
> File "reader\analyze_reader.pyc", line 3, in <module><br>
> File "itk.pyc", line 2, in <module><br>
> File "itkBase.pyc", line 228, in <module><br>
> WindowsError: [Error 3] O sistema não pode encontrar o caminho especificado:<br>
> 'E:\\_\\files\\dist\\app.exe\\Configuration/*.*'<br>
><br>
> How can I fix this?<br>
<br>
</div></div>You need to read the py2exe documentation esp. the 'frozen' part. See<br>
gdcm for example, it uses a variable to detect 'frozen' configuration:<br>
<br>
<a href="http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Wrapping/Python/gdcm.py?view=markup" target="_blank">http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Wrapping/Python/gdcm.py?view=markup</a><br>
<br>
...<br>
def main_is_frozen():<br>
return hasattr(sys, "frozen")<br>
...<br>
<br>
2cts<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br>