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. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.