Skip to content

Commit

Permalink
import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Keller committed May 9, 2016
1 parent 55a75ce commit 43aa435
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo.py
Expand Up @@ -26,7 +26,7 @@ def choice(*values):
return np.random.choice(values, size)

random_dates = [
datetime.date(2016, 1, 1) + datetime.timedelta(days=delta)
datetime.date(2016, 1, 1) + datetime.timedelta(days=int(delta))
for delta in np.random.randint(1, 50, size)
]

Expand Down
10 changes: 9 additions & 1 deletion dfgui/dfgui.py
Expand Up @@ -3,7 +3,15 @@

from __future__ import absolute_import, division, print_function

import wx
try:
import wx
except ImportError:
import sys
sys.path += [
"/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode",
"/usr/lib/python2.7/dist-packages"
]
import wx

import matplotlib
matplotlib.use('WXAgg')
Expand Down

0 comments on commit 43aa435

Please sign in to comment.