[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: where do my python files go in linux?

Jorgen Bodde

1/12/2008 3:13:00 PM

Hi Jeroen,

Thanks for the advice.

> Personally I'd be loathe to put app.py in /usr/bin. This directory is normally
> reserved for OS-specific binaries. For personal/system-extended stuff I'd use
> /usr/local/bin or whatever your system mandates. (But hey, that's the typical
> mentality difference between the BSD and Linux world it seems, so do with it
> what you want.)

I thought about that too. I just wonder why /usr/local/bin is always
empty and every .deb I install from a source (if it's from Ubuntu or
not) installs files in /usr/bin .. So I looked further and noticed
that most python files do reside in /usr/share/{appname}

> Normally you'd split up the bulk of the code into a module which gets
> installed into site-packages and a piece of stand-alone front-end code which
> imports the module and executes whatever you need to do and gets installed
> into a typical PATH directory.

I would agree but it is not a site package I am trying to distribute,
but a wxPython application. I would not think my app belongs in the
python site packages dir.

Thanks a lot for the input!

- Jorgen
1 Answer

Grant Edwards

1/12/2008 4:26:00 PM

0

On 2008-01-12, Jorgen Bodde <jorgen.maillist@gmail.com> wrote:

>> Normally you'd split up the bulk of the code into a module which gets
>> installed into site-packages and a piece of stand-alone front-end code which
>> imports the module and executes whatever you need to do and gets installed
>> into a typical PATH directory.
>
> I would agree but it is not a site package I am trying to distribute,
> but a wxPython application. I would not think my app belongs in the
> python site packages dir.

That's my opinion also, but I've seen several apps that are
distributed that way. The bulk of the application code goes
into the site-packages directory and then there's a 5-line
script in /usr/bin that calls the application's main module
that's in site-packages.

That seems wrong to me...

--
Grant Edwards grante Yow! Civilization is
at fun! Anyway, it keeps
visi.com me busy!!