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):
|
def resource_path(self, relative_path):
|
||||||
""" Get absolute path to resource, works for dev and for PyInstaller """
|
""" Get absolute path to resource, works for dev and for PyInstaller """
|
||||||
try:
|
# try:
|
||||||
# PyInstaller creates a temp folder and stores path in _MEIPASS
|
# PyInstaller creates a temp folder and stores path in _MEIPASS
|
||||||
base_path = sys._MEIPASS
|
# base_path = sys._MEIPASS
|
||||||
except Exception:
|
# except Exception:
|
||||||
base_path = os.path.abspath(".")
|
base_path = os.path.abspath(".")
|
||||||
|
|
||||||
return os.path.join(base_path, relative_path)
|
return os.path.join(base_path, relative_path)
|
||||||
|
|
Loading…
Reference in a new issue