1 """Module to make life easier for SymPy examples"""
3 # hook in-tree sympy into python path if running example
6 my_dir
= os
.path
.dirname(__file__
) # examples/
7 sympy_top
= os
.path
.split(my_dir
)[0] # ../
8 sympy_dir
= os
.path
.join(sympy_top
, 'sympy') # ../sympy/
9 if os
.path
.isdir(sympy_dir
):
10 #print 'working in-tree...'
11 sys
.path
.insert(0, sympy_top
)