Skip to content

Commit 4c7af43

Browse files
committed
wppm: fixed "KeyError: 'spyderlib'"
Update Issue 42 Status: Fixed This was a dumb import error affecting only wppm script. Thanks for reporting.
1 parent eb39dc3 commit 4c7af43

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

winpython/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@
1010
Created on Wed Aug 29 12:23:19 2012
1111
"""
1212

13-
14-
from guidata.configtools import add_image_path, get_module_data_path
15-
from guidata.configtools import get_icon # analysis:ignore
16-
13+
from spyderlib.baseconfig import add_image_path, get_module_data_path
1714

1815
add_image_path(get_module_data_path('winpython', relpath='images'))
1916
add_image_path(get_module_data_path('spyderlib', relpath='images'))
2017

21-
2218
def get_data_path():
2319
"""Return package data path"""
2420
return get_module_data_path('winpython', relpath='data')

winpython/controlpanel.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
getexistingdirectory)
2727
import spyderlib.qt
2828

29-
from spyderlib.utils.qthelpers import (add_actions, create_action, keybinding,
30-
get_std_icon, action2button,
29+
from spyderlib.utils.qthelpers import (get_icon, add_actions, create_action,
30+
keybinding, get_std_icon, action2button,
3131
mimedata2url)
3232
from spyderlib.utils import encoding
3333

3434
# Local imports
3535
from winpython import __version__, __project_url__, __forum_url__
3636
from winpython import wppm, associate, utils
37-
from winpython.config import get_icon
3837
from winpython.py3compat import getcwd, to_text_string
3938

4039

0 commit comments

Comments
 (0)