<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#144FAE"><font class="Apple-style-span" color="#000000"><br></font></font></blockquote>Hi Dave,<br>Your solution sort of defeats my intended purpose (sorry for not divulging my 'hidden agenda').<br>I wanted my application to "hide" the fact that it's a python script, and look as much as possible like it's a compiled program.<br>The reason I don't just give my user a py file, is that I don't want a cleaver user to change the innards of the script.<br>On the other hand, I don't want to make a compiled (freezed?) version of the application, because it'll grow the resulting file significantly, and I don't have the experience to know how it will run on different Linuxes.<br>Bye,<br>Ron. <br></div></blockquote></div><br><div>Hey Ron,</div><div><br></div><div>What i usually do to accomplish this is compile the script to a .pyc just like you</div><div>did and then call that pyc from another script that's not compiled.</div><div>so in your case the not compiled script looks like:</div><div><br></div><div>#!/usr/bin/env python</div><div><br></div><div>import test_pyc.pyc</div><div><br></div><div><br></div><div><br></div><div>then run that script...</div><div><br></div><div>hope this helps...</div><div><br></div><div><br></div><div><br></div><div>alternatively you might have a look at:</div><div><a href="http://www.pyinstaller.org/">http://www.pyinstaller.org/</a></div><div><br></div><div><br></div><div><br></div><div>gr</div><div>Arno</div></body></html>