On 12/21/05, Mike Orr <[EMAIL PROTECTED]> wrote: > > Icylamb: > > I found the file MyProject-start.py in the same folder with dev.cfg > > which I thought all the start-up script should be placed in there. > > I have a similar case but for admin programs and cron jobs. I want > them together with the project directory rather than thrown into some > anonymous bin directory. Actually, I'd like them in my own bin/ > subdirectory, but then they'll have to somehow go up one to find the > config file and libraries. Normally I'd do this based on __path__. I > assume it'll be straightforward enough to do when the time comes.
You can, if you want, put your script code directly in your package and point setuptools at it in your setup.py. setuptools will then generate an appropriate script that gets installed when you easy_install your package. There are functions in pkg_resources for getting at other files in your package in a way that is compatible with zipped-up eggs. Kevin

