mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 02:25:05 +01:00
Delegate to bypy to tell us if we are running from develop
This commit is contained in:
parent
6f44e1cc42
commit
27584dc8a1
1 changed files with 9 additions and 3 deletions
|
|
@ -297,9 +297,15 @@ def cleanup_cdir():
|
|||
# }}}
|
||||
|
||||
|
||||
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…
Reference in a new issue