mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Restore the dynamic_property builtin for third party plugins
This commit is contained in:
parent
10f57cf499
commit
7114083e09
@ -17,6 +17,10 @@ builtins.__dict__['_'] = lambda s: s
|
||||
# immediately translated to the environment language
|
||||
builtins.__dict__['__'] = lambda s: s
|
||||
|
||||
# For backwards compat with some third party plugins
|
||||
builtins.__dict__['dynamic_property'] = lambda func: func(None)
|
||||
|
||||
|
||||
from calibre.constants import iswindows, preferred_encoding, plugins, isosx, islinux, isfrozen, DEBUG, isfreebsd, ispy3
|
||||
|
||||
_run_once = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user