gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Python scripts' base dir
Date Thu, 24 Apr 2003 14:55:48 GMT

Sam Ruby wrote, On 24/04/2003 16.27:
> Nicola Ken Barozzi wrote:
> 
>>>     if basedir not in sys.path: sys.path.insert(0, basedir)
>>
>> What does this bring us? (ie me don't understand what it does)
> 
> # If basedir is not in the current search path for python scripts, 
> insert basedir at the beginning of the search path.

# My problem started as is referencing directories and not
# finding python scripts; now I understand that also this
# problem would have arised, and this is the solution, right?
# :-D

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message