New to Python and understanding problem

MRAB python at mrabarnett.plus.com
Mon Jan 29 13:15:05 EST 2018


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]



More information about the Python-list mailing list