diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index ab554d02aaa..81e46977e0b 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -120,7 +120,7 @@ # Create splash screen out of MainWindow to reduce perceived startup time. #============================================================================== from spyder.config.base import _, get_image_path, DEV, PYTEST -SPLASH = QSplashScreen(QPixmap(get_image_path('splash.svg'), 'svg')) +SPLASH = QSplashScreen(QPixmap(get_image_path('splash.svg'))) SPLASH_FONT = SPLASH.font() SPLASH_FONT.setPixelSize(10) SPLASH.setFont(SPLASH_FONT) diff --git a/spyder/config/base.py b/spyder/config/base.py index 4225e1234a0..c66a488ce14 100644 --- a/spyder/config/base.py +++ b/spyder/config/base.py @@ -214,6 +214,7 @@ def get_image_path(name, default="not_found.png"): if osp.isfile(full_path): return osp.abspath(full_path) if default is not None: + img_path = osp.join(get_module_path('spyder'), 'images') return osp.abspath(osp.join(img_path, default))