What does sys.path.append("..") do?

Viewed 14805

I bumped into this statement in a python script : sys.path.append("..") I did some research, but I could not find what does it do.

I know sys.path.append() function appends a path at the end of the PYTHONPATH list. But what does ".." stand for?

Needless to say that this python scripts does not work if I comment the line.

1 Answers

".." is a way of saying/referencing the parent of the current working directory.

Related