@@ -2,3 +2,19 @@
[[https://tex.stackexchange.com/questions/204669/combining-para-and-plain-footnotes-using-manyfoot][footnote switch]]
+* tomlib python
+
+moderniser le traitement des fichiesr data.yml ?
+* Python textwrap
+https://docs.python.org/3/library/textwrap.html
+* Python imagesize
+https://github.com/sysfce2/python-imagesize
+info = imagesize.get_info("test.png")
@@ -12,7 +12,7 @@ def addpath(x,ajout):
# Récupérer la liste des textes à introduire
#
path2add="../Sources/Courante"
-with open("all_texts") as f:
+with open("textes") as f:
lf0= f.readlines()
lf=[]
for x in lf0:
@@ -4,9 +4,10 @@
import sys,pypandoc,os,re,subprocess,yaml,hashlib
#---------------------------------------------
-#sys.path.append(f"{os.getcwd()}/..")
-sys.path.append("/home/moi/Memoires/progs")
-
+#
+p=os.getcwd().find("Sources/")
+sys.path.append(f"{os.getcwd()[:p]}progs/")
from memmod import *
import parsebib
#----
@@ -9,7 +9,7 @@ sys.path.append(f"{os.getcwd()}/..")
path2add= "../Sources/Courante"
L= f.readlines()
D={}
for x in L:
@@ -6,7 +6,8 @@ from jinja2 import Environment, FileSystemLoader
import os,yaml,sys
-sys.path.append("/home/moi/Memoires/")