projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
R 4.3 on windows
[iramuteq]
/
webexport.py
diff --git
a/webexport.py
b/webexport.py
index
bbf05b5
..
800c32f
100644
(file)
--- 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
import codecs
from shutil import copyfile
import os
-from chemins import PathOut
+#------------------------------------
+# import des fichiers du projet
+#------------------------------------
+from chemins import PathOut
class WebExport :
class WebExport :
+
def __init__(self, parent, parametres) :
self.parent = parent
self.parametres = parametres
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
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')
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
with open(simiout, 'w') as f :
f.write(content)
return simiout
-
\ No newline at end of file