943,736 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 561
  • Python RSS
Sep 6th, 2008
0

problem with os module

Expand Post »
Ok I'm making a program in PyQt and when I call
Python Syntax (Toggle Plain Text)
  1. os.path.join("~/", "otherdirectory")
It gives me:
Python Syntax (Toggle Plain Text)
  1. File '/usr/lib/python2.5/posixpath.py', Line 62, in join:
  2. elif path == ' ' or path.endswith('/'):
  3. Attribute Error: endswith

I don't know what is causing this.
Any help would be appreciated!
Similar Threads
Reputation Points: 10
Solved Threads: 2
Newbie Poster
OutOfReach is offline Offline
19 posts
since Aug 2008
Sep 6th, 2008
0

Re: problem with os module

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.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
OutOfReach is offline Offline
19 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: wxPython, MySQL, SQLAlchemy app Problem
Next Thread in Python Forum Timeline: Problems on my first project





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC