SPECS: python.spec - non-python *.py in /usr/bin were crashing som...

michal salaban emes at pld-linux.org
Wed Feb 16 15:03:26 CET 2005


on Wed, Feb 16, 2005 at 01:49:49PM +0100, wrobell wrote:

> twistd should remove /usr/bin from its sys.path

really? it's default behaviour for all python applications to import from it's
base directory. why twisted should change it?

inconsistency comes from python package, not twisted, so there it should be
fixed, i think.

> > the other, better solution is to copy or link original python scripts to
> > /usr/bin. i'm currently working on it.
> if you run a script as root and then python will not try to create *.py[co]
> file in /usr/bin... but then twistd will import pdb from /usr/bin?

you're right. it's not good, too.

so the question is - do the scripts in /usr/bin have to have .py extension,
even if they're not python scripts? is it any convention or other rule that we
have to follow?

-- 
michal salaban -|- emes (na) pld-linux.org -|- jabber: emes at jabber.org




More information about the pld-devel-en mailing list