View Single Post
Old 03-29-2014, 11:17 PM   #4
trying
Member
trying doesn't littertrying doesn't litter
 
Posts: 21
Karma: 104
Join Date: Oct 2013
Device: none
Yes the try: except ImportError: technique does work

For the other one, you really meant to say :

Code:
import sys
in_calibre = hasattr(sys, 'extensions_location')
Although, IMO, maybe looking for calibre_basename, calibre_function, or calibre_module is better since more obvious what you are looking for? (extensions_location is a bit general).
trying is offline   Reply With Quote