From a01940753320e5435bbd1684afa589c4bfdc67e2 Mon Sep 17 00:00:00 2001 From: Aveias <spam@aveias.fr> Date: Sun, 6 Aug 2017 15:31:25 +0200 Subject: [PATCH] =?UTF-8?q?passage=20en=20commentaire=20de=20lignes=20g?= =?UTF-8?q?=C3=A9n=C3=A9rant=20une=20erreur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menu/barreOutils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Menu/barreOutils.py b/Menu/barreOutils.py index 554be33..6265ccd 100644 --- a/Menu/barreOutils.py +++ b/Menu/barreOutils.py @@ -145,11 +145,11 @@ class BarreOutils(): def resource_path(self, relative_path): """ Get absolute path to resource, works for dev and for PyInstaller """ - try: + # try: # PyInstaller creates a temp folder and stores path in _MEIPASS - base_path = sys._MEIPASS - except Exception: - base_path = os.path.abspath(".") + # base_path = sys._MEIPASS + # except Exception: + base_path = os.path.abspath(".") return os.path.join(base_path, relative_path)