[Insight-users] Freezing itk python executables
Peter
peter.bloomfield at camhpet.ca
Tue Apr 19 16:21:50 EDT 2011
Hi,
I apologise if this is not the correct place to post this, so please forgive me or correct me. I am trying to build executables
from python scripts under Windows XP. The python scripts use itk and the .py scripts work fine, but I want to 'freeze' them. I
have tried both py2exe and cx_freeze, and they both fail to locate itk during the build process. I am assuming that this is due
to the fact that the python itk is not under C:\Python26, but under the directory I defined during cmake, and subsequent
compilation.
I have a couple of questions; firstly what is the best way to include itk within python, at the moment I have added directories
to the PATH and PYTHONPATH environment variables) and then call 'import itk' from within python.
Secondly, if anyone has used either 'py2exe' or 'cs_freeze' to build executables from python scripts that import itk could they
point me in the direction of any information.
Thanks in advance,
Peter
More information about the Insight-users
mailing list