 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]
|