Re: python app import guidelines

2010-09-23 Thread Stephen Burke
he > top-level of your package and then touch'ing __init__py's in all the > directories leading to importable packages?  Maybe I've misunderstood > the question though... > > -tim > > On Wed, Sep 22, 2010 at 12:43 PM, Stephen Burke > wrote: >> I am

python app import guidelines

2010-09-22 Thread Stephen Burke
I am packaging up a python app to upload it to my PPA eventually. Before this everything I have written is in one directory so all my imports were simple. Now that I am breaking up the app and the top level script is in a "bin" directory and the helper scripts are in a "helpers" directory on the s

alternative to hardcoding system util paths

2010-09-16 Thread Stephen Burke
I'm writing a python script and I'm using aptitude and update-grub in the script. Currently I just use the abolute path to the bins ie. /usr/bin/aptitude. Ultimately I'd like to package it and distribute it as a deb. What's the recommended way to get these paths so they will work on any user's m