diff --git a/news/add_wx_import.rst b/news/add_wx_import.rst new file mode 100644 index 00000000..6cf3dbef --- /dev/null +++ b/news/add_wx_import.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Added a wx import to fix module not found error. + +**Security:** + +* diff --git a/setup.py b/setup.py index 18d71f8d..08e2146b 100755 --- a/setup.py +++ b/setup.py @@ -59,6 +59,9 @@ def getversioncfg(): g = gitinfo() except OSError: pass + if len(g['version']) == 0: + g['version'] = FALLBACK_VERSION + # finally, check and update the active version file cp = RawConfigParser() cp.read(versioncfgfile) diff --git a/src/diffpy/utils/wx/gridutils.py b/src/diffpy/utils/wx/gridutils.py index 55cab38a..4289196d 100644 --- a/src/diffpy/utils/wx/gridutils.py +++ b/src/diffpy/utils/wx/gridutils.py @@ -16,6 +16,8 @@ """Common functions for manipulating wx.grid.Grid. """ +import wx + def getSelectionRows(grid): """Indices of the rows that have any cell selected.