From 5db3c26ae2814432c792531a60fab094c90bfe83 Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 29 Nov 2018 14:59:30 +0000 Subject: [PATCH] Locate the application icon correctly when we're frozen. --- vasl_templates/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vasl_templates/main_window.py b/vasl_templates/main_window.py index b5706a2..dc8915d 100644 --- a/vasl_templates/main_window.py +++ b/vasl_templates/main_window.py @@ -57,7 +57,7 @@ class MainWindow( QWidget ): # initialize the main window self.setWindowTitle( APP_NAME ) if IS_FROZEN: - dname = sys._MEIPASS #pylint: disable=no-member,protected-access + dname = os.path.join( sys._MEIPASS, "vasl_templates/webapp" ) #pylint: disable=no-member,protected-access else: dname = os.path.join( os.path.split(__file__)[0], "webapp" ) self.setWindowIcon( QIcon(