Skip to content

Commit

Permalink
Make bin/ask_update.py grab the right sympy
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Oct 5, 2013
1 parent ce5aeb8 commit cd5fc74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/ask_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
$ python bin/ask_update.py
"""

# hook in-tree SymPy into Python path, if possible
import os
import sys

isympy_path = os.path.abspath(__file__)
isympy_dir = os.path.dirname(isympy_path)
sympy_top = os.path.split(isympy_dir)[0]
sympy_dir = os.path.join(sympy_top, 'sympy')

if os.path.isdir(sympy_dir):
sys.path.insert(0, sympy_top)

from sympy.assumptions.ask import (compute_known_facts, known_facts,
known_facts_keys)

Expand Down

0 comments on commit cd5fc74

Please sign in to comment.