Shebang or Hashbang for modules or not?
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Sat Apr 21 14:45:31 EDT 2007
Jorgen Grahn a écrit :
> On Fri, 13 Apr 2007 22:46:03 +0200, Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> wrote:
>
>>Jorgen Grahn a écrit :
>
(snip)
>
>>More seriously, and as far as I'm concerned, when I want to make a
>>python script (by opposition to a python 'module') available as a unix
>>command, I either use a symlink or a shell script calling the python
>>script.
>
>
> A symlink yes, but a shell script? Wouldn't it be easier to write a
> one-liner (well, two-liner) Python script in that case?
Not necessarily. Just like there are cases where it makes sens to use
Perl instead of Python, some things are really far simpler to do with
shell scripts...
More information about the Python-list
mailing list