import Jama.Matrix
sys.path.append('/Users/gobbo_a/dev/pshell/config/home/script/Lib/diffcalc')


import diffcmd.diffcalc_launcher
def exit(code=0):
    if (code==0):
        raise Exception("Diffcalc execution finished")
    raise Exception("Diffcalc exit with code: " + str(code))
diffcmd.diffcalc_launcher.exit=exit

import numjy
print numjy.JAMA

from numjy import matrix

#sys.argv=['diffcalc' , 'sixcircle', "--python"] #, '--non-interactive']
#from diffcmd.diffcalc_launcher import main
#main()
sys.argv=['diffcalc', "sixcircle", False]
run("/Lib/diffcalc/diffcmd/start.py")