Skip to content

Commit

Permalink
Merge pull request #2243 from siemens/img_path_fix
Browse files Browse the repository at this point in the history
Don't add invalid paths to IMG_PATH
  • Loading branch information
ccordoba12 committed Apr 30, 2015
2 parents b232914 + 7e4f59f commit 7bd0327
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spyderlib/baseconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def add_image_path(path):
return
global IMG_PATH
IMG_PATH.append(path)
for _root, dirs, _files in os.walk(path):
for dir in dirs:
IMG_PATH.append(osp.join(path, dir))
for dirpath, dirnames, _filenames in os.walk(path):
for dirname in dirnames:
IMG_PATH.append(osp.join(dirpath, dirname))

add_image_path(get_module_data_path('spyderlib', relpath='images'))

Expand Down

0 comments on commit 7bd0327

Please sign in to comment.