passage en commentaire de lignes générant une erreur
This commit is contained in:
parent
e362d2ebd5
commit
a019407533
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue