mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2026-09-11 19:21:41 -04:00
Begin work on Python2 support
This commit is contained in:
@@ -17,6 +17,8 @@ except ImportError:
|
||||
else:
|
||||
raise
|
||||
|
||||
#@@CALIBRE_COMPAT_CODE@@
|
||||
|
||||
def GetSystemDirectory():
|
||||
from ctypes import windll, c_wchar_p, c_uint, create_unicode_buffer
|
||||
MAX_PATH = 255
|
||||
@@ -126,11 +128,8 @@ def GetMasterKey():
|
||||
|
||||
|
||||
# Get CPU vendor:
|
||||
try:
|
||||
import cpuid
|
||||
except:
|
||||
import calibre_plugins.deacsm.cpuid as cpuid
|
||||
|
||||
import cpuid
|
||||
import struct
|
||||
cpu = cpuid.CPUID()
|
||||
_, b, c, d = cpu(0)
|
||||
|
||||
Reference in New Issue
Block a user