best way to ensure './' is at beginning of sys.path?
Wildman
best_lay at yahoo.com
Fri Feb 3 18:21:08 EST 2017
On Sat, 04 Feb 2017 09:25:42 +1100, Cameron Simpson wrote:
> On 03Feb2017 14:55, Wildman <best_lay at yahoo.com> wrote:
>>On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote:
>>
>>> On 02/03/2017 12:07 PM, Wildman via Python-list wrote:
>>>> Sorry, I forgot something important. If you use
>>>> /etc/rc.local, the execute bit must be set.
>>>
>>> I don't think this is what Neal Becker was asking about. He's talking
>>> about the Python module search path (sys.path) not the operating system
>>> PATH variable. Correct me if I'm wrong.
>>
>>After re-reading the post I see you are correct.
>>I will endeavor to read a little closer and a
>>little slower in the future.
>
> Also, what you describe with rc.local wouldn't work anyway, even if it had ben
> what was asked.
>
> Cheers,
> Cameron Simpson <cs at zip.com.au>
Of course, you are correct. I don't know where my head
was. I think my tongue got in front of my eye teeth and
I could not see what I was saying. :-)
If anyone is interested the correct way is to add this to
/etc/profile (at the bottom):
PATH=$PATH:./
export PATH
--
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!
More information about the Python-list
mailing list