osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New to Python and understanding problem


On 2018-01-29 17:01, Michelle Konzack wrote:
[snip]

> I think, that I have found the error here:
> 
> sys.path = [_dirname, os.path.join(_dirname, 'module', '.libs')] + sys.path
> 
> because there is written in
> 
> ----[ '/usr/lib/python-3.5/os.py' ]-------------------------------------
> To get a full path (which begins with top) to a file or directory in
> dirpath, do os.path.join(dirpath, name).
> ------------------------------------------------------------------------
> 
> Hence, os.path.join() has only 2 parameters and not 3.
> 
os.path.join() will accept any number of parameters, except zero.

[snip]