Fwd: [avahi] autotooling python scripts

Sebastien Estienne sebastien.estienne at gmail.com
Wed Aug 3 07:13:36 EST 2005


2005/8/2, Lennart Poettering <lennart at poettering.de>:
> On Tue, 02.08.05 21:35, Sebastien Estienne (sebastien.estienne at gmail.com) wrote:
> 
> > 2005/8/2, Joe Shaw <joeshaw at novell.com>:
> > > Hi,
> > >
> > > On Tue, 2005-08-02 at 21:17 +0200, Sebastien Estienne wrote:
> > > > > > I also don't know where i'm supposed to store SimpleGladeApp.py, it
> > > > > > seems that is should be package on its on and installed in
> > > > > > /usr/lib/python2.4/
> > > > > > But until debiab/ubuntu/whatever package it, i don't really know where
> > > > > > to store it, i mean put it in $DATADIR/avahi/python/ and ajust the
> > > > > > import path in my pygtk app.
> > > > >
> > > > > Is it just a sample program that illustrates how to use the bindings?
> > > > > If that's the case, it should probably be included in EXTRA_DIST but not
> > > > > installed anywhere.  Distributors can pick it up and put it
> > > > > in /usr/share/doc if they want.
> > > > i think that it may be usefull for end user, it's a graphical tool to
> > > > browse the network.
> > >
> > > Ah, ok, in that case you could just make sure that it is a+x, put
> > > "#!/usr/bin/python" at the top, and stick it in /usr/bin sans .py
> > i also saw #!/usr/bin/env python
> > what is it about?
> 
> It's a hack for not writing the real path to the python binary in the
> #! line. Not on all systems "python" is found in /us/bin. On the
> other hand "env" is found in /usr/bin on most systems. The env tool
> interprets $PATH.
> 
> It's hackish though since passing additional command line arguments
> doesn't work when using env.
> 
> > > extension.  I'd suggest renaming it to something more descriptive,
> > > though, like "avahi-browse" or whatever. :)
> > we already have avahi-browse-service , and avahi-browse-domain
> 
> do we? where?
It is in svn rev 265 :)
Sorry i mean avahi-publish-* , do we need avahi-browse ? i guess we do.

> 
> Lennart
> 
> --
> Lennart Poettering; lennart [at] poettering [dot] de
> ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
> 


-- 
Sebastien Estienne


More information about the avahi mailing list