diff --git a/build/osx/aydin.spec b/build/osx/aydin.spec index ca14846d..ca08041c 100644 --- a/build/osx/aydin.spec +++ b/build/osx/aydin.spec @@ -78,7 +78,7 @@ pyz = PYZ(a.pure) # we actually dont need (e.g. wxPython) import re -reg = re.compile(".*(PyQt4|k_means|mpl-data|tcl|zmq|QtWebKit|QtQuick|wxPython).*") +reg = re.compile(".*(PyQt4|k_means|mpl-data|zmq|QtWebKit|QtQuick|wxPython).*") # from pprint import pprint # pprint(a.binaries) diff --git a/build/osx/runtimehooks/hook-splash.py b/build/osx/runtimehooks/hook-splash.py index 28546db5..66622bb5 100644 --- a/build/osx/runtimehooks/hook-splash.py +++ b/build/osx/runtimehooks/hook-splash.py @@ -8,16 +8,19 @@ from PIL import Image +try: + img = Image.open(absPath("biohub_logo.png")) + fig = plt.figure() + man = plt.get_current_fig_manager() + man.canvas.set_window_title("Aydin Studio - image denoising, but chill...") + imgplot = plt.imshow(img) -img = Image.open(absPath("biohub_logo.png")) -fig = plt.figure() -man = plt.get_current_fig_manager() -man.canvas.set_window_title("Aydin Studio - image denoising, but chill...") -imgplot = plt.imshow(img) + plt.axis('off') -plt.axis('off') + plt.show(block=False) + plt.pause(4) + plt.close() -plt.show(block=False) -plt.pause(4) -plt.close() +except Exception as ex: + print("no splash screen")