[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Language extensions in programs under /usr/bin



Hi Daniel,

>   I think it's worth pointing out that if a file called "ask.py" is in
> /usr/bin, the statement:
> 
> import ask
> 
>   from a Python program in /usr/bin which hasn't modified its sys.path
> will, unless I am terribly confused, pick up ask.py instead of whatever
> module it was looking for.  I'm not aware of any module named "ask"
> right now, but I can certainly imagine someone creating one.

That would not be a problem, as no other program imports ask.py...

Regards,
Paga

> 
>   Daniel
> 
> -- 
> /-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
> |                      Put no trust in cryptic comments.                      |
> \---------------------- A duck! -- http://www.python.org ---------------------/

-- 
Marco Paganini          | UNIX / Linux / Networking
paganini@paganini.net   | PGP: http://www.paganini.net/pgp/
http://www.paganini.net | Magnus Frater te spectat...



Reply to: