Skip to content

Commit

Permalink
Fix certificate error on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
hvdwolf committed May 21, 2022
1 parent 1f7a7c8 commit c923976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PyImageFuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def main():
# Display the GUI to the user
window = ui_layout.create_and_show_gui(tmpfolder,start_folder)

# Now do the version cehck
# Now do the version check
file_functions.version_check()

while True:
Expand Down
8 changes: 5 additions & 3 deletions file_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
# the GNU General Public Licence for more details.

import glob, os, shutil, sys, webbrowser
import certifi, glob, os, shutil, ssl, sys, webbrowser
from urllib.request import urlopen

import PySimpleGUI as sg
Expand Down Expand Up @@ -144,7 +144,7 @@ def version_check():
second = ""
third = ""
new_version = False
version_txt = urlopen("https://raw.githubusercontent.com/hvdwolf/PyImageFuser/main/version.txt")
version_txt = urlopen("https://raw.githubusercontent.com/hvdwolf/PyImageFuser/main/version.txt", context=ssl.create_default_context(cafile=certifi.where()))

cur_version = (program_texts.Version).split(".")
print('this version: ', str(cur_version))
Expand Down Expand Up @@ -186,4 +186,6 @@ def show_html_in_browser(main_event):
try:
webbrowser.open('file://' + resource_path(os.path.join(os.path.join(os.path.realpath('.'),'docs', html_file))))
except:
sg.popup("Can't open " + html_file, icon=image_functions.get_icon())
sg.popup("Can't open " + html_file, icon=image_functions.get_icon())

#

0 comments on commit c923976

Please sign in to comment.