Skip to content

Commit

Permalink
Do not fail during import under Python3 where weave is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Jul 19, 2013
1 parent 199a763 commit fd1e27e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion brian2/codegen/runtime/weave_rt/weave_rt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os

from scipy import weave
try:
from scipy import weave
except ImportError:
# No weave for Python 3
weave = None

from ...codeobject import CodeObject
from ...templates import Templater
Expand Down

0 comments on commit fd1e27e

Please sign in to comment.