New-style classes + __getattr__ sucks, here is why:
[sympy.git] / examples / iam_sympy_example.py
blob226e8116b46cfaf8b0fb21eef35652a83c13561b
1 """Module to make life easier for SymPy examples"""
3 # hook in-tree sympy into python path if running example
4 import sys
5 import os.path
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)