On Aug 7, 3:04 pm, Peter Chant <rempete...@petezilla.co.uk> wrote:
> Robert Kern wrote:
> > You need to put main.py into the pphoto package.
>
> > $ mkdir pphoto/
> > $ mv main.py pphoto/
> > $ touch pphoto/__init__.py
>
> Thanks, it worked.  Any ideas how to run the resulting scripts without
> installing or running as root?
>
> Pete
>
> --http://www.petezilla.co.uk

If you are using Python 2.6+ you have your own site-packages
directory, e.g. ~/.local/lib/python2.6/site-packages. So, if this
package is only for your own use, you can use easy_install's --install-
dir option to have setuptools install it there, and can also set --
script-dir to ~/bin, where your console script will go. This, and
other options are discussed here:

http://peak.telecommunity.com/DevCenter/EasyInstall#custom-installation-locations
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to