On Sun 22 Sep 2019 at 16:31:22 (-0000), Curt wrote:
> On 2019-09-22, Thomas Schmitt <scdbac...@gmx.net> wrote:
> >
> > So to avoid the cd command with absolute path, you would have to give
> > the script address as absolute path:
> >
> >   python /path/to/script/script.py
> >
> 
> I make my local scripts executable and stick them in '/usr/local/bin'.

Yes, very appropriate for scripts that you (or others) frequently run,
but there are also scripts that are run infrequently, or where you
might not want to clutter your executable namespace with their names.
(A script called script.py would likely fall into the second category.)
Those are best placed elsewhere and not made executable.

Of course, we don't know anything about the OP's scriptS [sic], and
perhaps we never will.

Cheers,
David.

Reply via email to