passage en commentaire de lignes générant une erreur

This commit is contained in:
Matt Marcha 2017-08-06 15:31:25 +02:00
parent e362d2ebd5
commit a019407533

View file

@ -145,10 +145,10 @@ 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 = sys._MEIPASS
# except Exception:
base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path)