problem with os module

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Aug 2008
Posts: 19
Reputation: OutOfReach is an unknown quantity at this point 
Solved Threads: 2
OutOfReach OutOfReach is offline Offline
Newbie Poster

problem with os module

 
0
  #1
Sep 6th, 2008
Ok I'm making a program in PyQt and when I call
  1. os.path.join("~/", "otherdirectory")
It gives me:
  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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 19
Reputation: OutOfReach is an unknown quantity at this point 
Solved Threads: 2
OutOfReach OutOfReach is offline Offline
Newbie Poster

Re: problem with os module

 
0
  #2
Sep 6th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC