mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Remove CALIBRE_DEVELOP_FROM from site.py
It will be implemented in the bypy frozen loader instead
This commit is contained in:
parent
0c2b5e5b32
commit
eb824ef094
@ -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()
|
||||
|
@ -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 (
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user