source: pyromaths/trunk/fuentes/src/pyromaths/outils/TestEnv.py @ 423

Last change on this file since 423 was 423, checked in by mabarracus, 4 years ago

add sources from pyromaths 15.10

File size: 1.6 KB
Line 
1#!/usr/bin/python
2# -*- coding: utf-8 -*-
3#
4# Pyromaths
5# Un programme en Python qui permet de créer des fiches d'exercices types de
6# mathématiques niveau collège ainsi que leur corrigé en LaTeX.
7# Copyright (C) 2006 -- Jérôme Ortais (jerome.ortais@pyromaths.org)
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22#
23
24# ## Pour tester la boite de dialogue
25# # Fichier à compléter par les tests d'environnement
26
27# ## Tests à faire ?
28# installation d'une distribution latex
29# installation des bonnes extensions latex
30# lecture de pyromaths.xml
31# écriture dans le dossier de destination
32
33from os.path import isfile, join
34
35def test(gui):
36    from pyromaths.Values import CONFIGDIR
37    if not isfile(join(CONFIGDIR, "pyromaths.xml")):
38        gui.erreur_critique(_(u"Impossible de lire le fichier de configuration." \
39                u"Veuillez vérifier ce dernier ou faire remonter l'erreur " \
40                u"sur le forum de Pyromaths."))
Note: See TracBrowser for help on using the repository browser.