Ok I'm making a program in PyQt and when I call

os.path.join("~/", "otherdirectory")

It gives me:

File '/usr/lib/python2.5/posixpath.py', Line 62, in join:
    elif path == ' ' or path.endswith('/'):
Attribute Error: endswith

I don't know what is causing this. :S
Any help would be appreciated!

Gah! Ok I'm sorry guys, I got it.
Turns out that the string I wanted to join was a QString. Meh ok anyway I fixed it. :)