0

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!

1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by OutOfReach
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.