mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Delegate to bypy to tell us if we are running from develop
This commit is contained in:
parent
6f44e1cc42
commit
27584dc8a1
@ -297,9 +297,15 @@ else:
|
||||
# }}}
|
||||
|
||||
|
||||
dv = getenv('CALIBRE_DEVELOP_FROM')
|
||||
is_running_from_develop = bool(getattr(sys, 'frozen', False) and dv and os.path.abspath(dv) in sys.path)
|
||||
del dv
|
||||
is_running_from_develop = False
|
||||
if getattr(sys, 'frozen', False):
|
||||
try:
|
||||
from bypy_importer import running_in_develop_mode
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
is_running_from_develop = running_in_develop_mode()
|
||||
|
||||
in_develop_mode = getenv('CALIBRE_ENABLE_DEVELOP_MODE') == '1'
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user