# -*- coding: iso-8859-1 -*-
from __future__ import division # 1/2 == .5 (par defaut, 1/2 == 0)

#    WxGeometrie
#    Dynamic geometry, graph plotter, and more for french mathematic teachers.
#    Copyright (C) 2005-2007  Nicolas Pourcelot
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

import traceback, param
import wxversion
try:
    if wxversion.checkInstalled(param.version_wxpython):
        wxversion.select(param.version_wxpython) # version a utiliser de preference
    else:  # ou bien la version n'est pas trouvee, ou bien on est dans py2exe
        print u"Attention : impossible de charger la version %s de WxPython." %param.version_wxpython
except:
    if param.debug:
        print traceback.format_exc()
    
        
try:
    import matplotlib
    matplotlib.use(param.moteur_de_rendu)
    import pylab # cette ligne semble nécessaire sous Ubuntu Feisty (python 2.5 - matplotlib 0.87.7) ??
except:
    print "Warning : Erreur lors de l'import de pylab.\n"
    if param.debug:
        print traceback.format_exc()
from pylib import *
from mathlib import *
from geolib import *
import pylib
import mathlib
import geolib
