mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow using an env var to force forms to be re-built
This commit is contained in:
parent
65923491f1
commit
5e3244c65c
@ -42,7 +42,7 @@ def build_forms(srcdir, info=None, summary=False, check_for_migration=False):
|
||||
|
||||
# Ensure that people running from source have all their forms rebuilt for
|
||||
# the qt5 migration
|
||||
force_compile = False
|
||||
force_compile = os.environ.get('CALIBRE_FORCE_BUILD_UI_FORMS', '') in ('1', 'yes', 'true')
|
||||
if check_for_migration:
|
||||
from calibre.gui2 import gprefs
|
||||
force_compile = not gprefs.get(f'migrated_forms_to_qt{qt_major}', False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user