X-Git-Url: http://www.iramuteq.org/git?a=blobdiff_plain;f=webexport.py;h=800c32f7f27827652d51e34eff240db3ae97ed4b;hb=refs%2Fheads%2F3.0;hp=bbf05b5dafdb18afb0fa7f15aa04e9290edfe16c;hpb=efbf9518c0fd5e429b3941be23717d6b12002b0d;p=iramuteq diff --git a/webexport.py b/webexport.py index bbf05b5..800c32f 100644 --- a/webexport.py +++ b/webexport.py @@ -1,11 +1,21 @@ +# -*- coding: utf-8 -*- +#modification pour python 3 : Laurent Mérat, 6x7 - mai 2020 + +#------------------------------------ +# import des modules python +#------------------------------------ import codecs from shutil import copyfile import os -from chemins import PathOut +#------------------------------------ +# import des fichiers du projet +#------------------------------------ +from chemins import PathOut class WebExport : + def __init__(self, parent, parametres) : self.parent = parent self.parametres = parametres @@ -48,7 +58,7 @@ class WebExport : with open(afcout, 'w') as f : f.write(content) return afcout - + def exportsimi(self) : simifile = os.path.join(self.parent.AppliPath, 'webexport', 'graphe.html') simiout = os.path.join(self.pathout.dirout, 'graphe.html') @@ -59,4 +69,3 @@ class WebExport : with open(simiout, 'w') as f : f.write(content) return simiout - \ No newline at end of file