best way to ensure './' is at beginning of sys.path?

Cameron Simpson cs at zip.com.au
Fri Feb 3 17:25:42 EST 2017


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>



More information about the Python-list mailing list