mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e3e03aa1a1
commit
22b7eb2ed1
@ -10,7 +10,7 @@ Sanda library wrapper
|
|||||||
|
|
||||||
import ctypes, uuid, hashlib, os, sys
|
import ctypes, uuid, hashlib, os, sys
|
||||||
from threading import Event, Lock
|
from threading import Event, Lock
|
||||||
from calibre.constants import iswindows, islinux, isosx
|
from calibre.constants import iswindows
|
||||||
from calibre import load_library
|
from calibre import load_library
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -29,12 +29,9 @@ try:
|
|||||||
except:
|
except:
|
||||||
lib_handle = None
|
lib_handle = None
|
||||||
|
|
||||||
|
text_encoding = 'utf-8'
|
||||||
if iswindows:
|
if iswindows:
|
||||||
text_encoding = 'mbcs'
|
text_encoding = 'mbcs'
|
||||||
elif islinux:
|
|
||||||
text_encoding = 'utf-8'
|
|
||||||
elif isosx:
|
|
||||||
text_encoding = 'utf-8'
|
|
||||||
|
|
||||||
def is_bambook_lib_ready():
|
def is_bambook_lib_ready():
|
||||||
return lib_handle != None
|
return lib_handle != None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user