From 90715e702bbebcf2c3cfd39628c931bbadda28b0 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 9 Apr 2024 19:19:33 +0200 Subject: Add project files --- projects/windows/main.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 projects/windows/main.py (limited to 'projects/windows/main.py') diff --git a/projects/windows/main.py b/projects/windows/main.py new file mode 100644 index 00000000..11a3f902 --- /dev/null +++ b/projects/windows/main.py @@ -0,0 +1,22 @@ +import ssl +import certifi +from functools import partial + +ssl.default_ca_certs = certifi.where() +ssl.create_default_context = partial( + ssl.create_default_context, + cafile=certifi.where() +) + +from g4f.gui.webview import run_webview +from g4f.gui.run import gui_parser +import g4f.debug +g4f.debug.version_check = False +g4f.debug.version = "0.2.8.0" + +if __name__ == "__main__": + parser = gui_parser() + args = parser.parse_args() + if args.debug: + g4f.debug.logging = True + run_webview(args.debug) \ No newline at end of file -- cgit v1.2.3