Commit ef5ce172db90441f9c72707d43d2168da50f18ce
1 parent
5f7b0c6b
Exists in
master
and in
3 other branches
FIX: Fixed bug in python 2.6 and ordereddict lib
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
invesalius/gui/widgets/slice_menu.py
| ... | ... | @@ -20,7 +20,11 @@ |
| 20 | 20 | # detalhes. |
| 21 | 21 | #-------------------------------------------------------------------------- |
| 22 | 22 | import sys |
| 23 | -from collections import OrderedDict | |
| 23 | + | |
| 24 | +try: | |
| 25 | + from collections import OrderedDict | |
| 26 | +except(ImportError): | |
| 27 | + from ordereddict import OrderedDict | |
| 24 | 28 | |
| 25 | 29 | import wx |
| 26 | 30 | from wx.lib.pubsub import pub as Publisher | ... | ... |