View Single Post
  #8  
Old 05-30-2010, 10:57 AM
mtngr1 mtngr1 is offline
Junior Member
 
Join Date: May 2010
Posts: 26
mtngr1 is on a distinguished road
Default

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


I'm confused because my Barnes and Noble ebooks are in my documents, but my Barnes and noble reader is in my Programs files\ Barnes and Noble\BNDesktopReader. I have windows xp, and here is what is part of what is in my code in ignoblekey-

def find_bnclientdb_path():
appdata = os.environ['APPDATA']
bndir = os.path.join(appdata, BN_APPDATA_DIR)
if not os.path.isdir(bndir):
raise IgnobleError('Could not locate B&N Reader installation')
dbpath = glob.glob(os.path.join(bndir, 'ClientAPI_*.db'))
if len(dbpath) == 0:
raise IgnobleError('Problem locating B&N Reader DB')
return sorted(dbpath)[-1]
Reply With Quote