mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 16:05:05 +02:00
Forgot one place to change over to kitty_run_data
This commit is contained in:
@@ -154,12 +154,11 @@ namespaced_entry_points['edit-config'] = edit_config_file
|
||||
namespaced_entry_points['shebang'] = shebang
|
||||
|
||||
|
||||
def setup_openssl_environment() -> None:
|
||||
def setup_openssl_environment(ext_dir: str) -> None:
|
||||
# Use our bundled CA certificates instead of the system ones, since
|
||||
# many systems come with no certificates in a useable form or have various
|
||||
# locations for the certificates.
|
||||
d = os.path.dirname
|
||||
ext_dir: str = getattr(sys, 'kitty_run_data')['extensions_dir']
|
||||
if 'darwin' in sys.platform.lower():
|
||||
cert_file = os.path.join(d(d(d(ext_dir))), 'cacert.pem')
|
||||
else:
|
||||
@@ -169,8 +168,10 @@ def setup_openssl_environment() -> None:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if getattr(sys, 'frozen', False) and getattr(sys, 'kitty_extensions_dir', ''):
|
||||
setup_openssl_environment()
|
||||
if getattr(sys, 'frozen', False):
|
||||
ext_dir: str = getattr(sys, 'kitty_run_data').get('extensions_dir')
|
||||
if ext_dir:
|
||||
setup_openssl_environment(ext_dir)
|
||||
first_arg = '' if len(sys.argv) < 2 else sys.argv[1]
|
||||
func = entry_points.get(first_arg)
|
||||
if func is None:
|
||||
|
||||
Reference in New Issue
Block a user