mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
fix: wrong assets path on windows
This commit is contained in:
@@ -80,11 +80,11 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
return asset_path
|
return asset_path
|
||||||
|
|
||||||
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
|
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
|
||||||
asset_path = os.path.join(sys._MEIPASS, 'core', 'interface', 'assets', filename)
|
asset_path = os.path.join(sys._MEIPASS, 'src', 'core', 'interface', 'assets', filename)
|
||||||
if os.path.exists(asset_path):
|
if os.path.exists(asset_path):
|
||||||
return asset_path
|
return asset_path
|
||||||
|
|
||||||
return os.path.join('core', 'interface', 'assets', filename)
|
return os.path.join('src', 'core', 'interface', 'assets', filename)
|
||||||
|
|
||||||
self.setWindowIcon(QIcon(get_asset_path("logo.png")))
|
self.setWindowIcon(QIcon(get_asset_path("logo.png")))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user