+# -*- coding: utf-8 -*-
# CONFIGURATION MANAGEMENT OF EDF VERSION
# ======================================================================
# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
import os,re
import glob
import traceback
+import codecs,types
def substract_list(liste1,liste2):
"""
retourne 1 si OK 0 sinon
"""
try :
- f=open(file,'w+')
- f.write(text)
- f.close()
- return 1
+ f=open(file,'w')
+ f.write(text)
+ f.close()
+ return 1
except:
- return 0
+ return 0
def extension_fichier(pathAndFile):
""" Return ext if path/filename.ext is given """