Remove CALIBRE_DEVELOP_FROM from site.py

It will be implemented in the bypy frozen loader instead
This commit is contained in:
Kovid Goyal 2020-09-30 14:03:19 +05:30
parent 0c2b5e5b32
commit eb824ef094
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 0 additions and 13 deletions

View File

@ -33,9 +33,6 @@ def set_helper():
def main():
sys.argv[0] = sys.calibre_basename
dfv = os.environ.get('CALIBRE_DEVELOP_FROM')
if dfv and os.path.exists(dfv):
sys.path.insert(0, os.path.abspath(dfv))
set_helper()
setup_openssl_environment()
set_quit()

View File

@ -46,9 +46,6 @@ def main():
except Exception:
pass
dfv = os.environ.get('CALIBRE_DEVELOP_FROM')
if dfv and os.path.exists(dfv):
sys.path.insert(0, os.path.abspath(dfv))
set_helper()
set_quit()
if sys.gui_app and not (

View File

@ -42,12 +42,6 @@ class PydImporter:
pyd_items = None
def add_calibre_vars():
dv = os.environ.get('CALIBRE_DEVELOP_FROM', None)
if dv and os.path.exists(dv):
sys.path.insert(0, os.path.abspath(dv))
def run_entry_point():
bname, mod, func = sys.calibre_basename, sys.calibre_module, sys.calibre_function
sys.argv[0] = bname + '.exe'
@ -77,7 +71,6 @@ def main():
linecache.orig_getline = linecache.getline
linecache.getline = fake_getline
add_calibre_vars()
set_helper()
set_quit()