View Single Post
Old 10-23-2010, 08:17 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 8,299
Karma: 36122446
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
I found that:
Code:
if 'calibre' in sys.modules:
   inCalibre = True
else:
   inCalibre = False
works rather nicely.
DiapDealer is online now   Reply With Quote