Grammalecte  Check-in [fc398bebae]

Overview
Comment:[build][fr] create folders recursively
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk | fr | build
Files: files | file ages | folders
SHA3-256: fc398bebaeedbab675f2f5daf4a5a99005c0a5b4e552978a1f5511f5223427ee
User & Date: olr on 2025-11-24 17:40:36
Other Links: manifest | tags
Context
2025-11-24
17:40
[build][fr] create folders recursively Leaf check-in: fc398bebae user: olr tags: trunk, fr, build
16:56
[build][fr] drop the obsolete distutils library and fix the thesaurus builder check-in: 652870dcf1 user: olr tags: trunk, fr, build
Changes

Modified gc_lang/fr/dictionnaire/genfrdic.py from [7c1521954d] to [48e0746ca6].

195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
    else:
        print("# Error: file not found.")


def createFolder (sp):
    "make a folder if it doesn’t exist; don’t change anything if it exists"
    if not os.path.exists(sp):
        os.mkdir(sp)


class Dictionnaire:
    def __init__ (self, version, name):
        # Dictionary
        self.sName = name
        self.lEntry = []







|







195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
    else:
        print("# Error: file not found.")


def createFolder (sp):
    "make a folder if it doesn’t exist; don’t change anything if it exists"
    if not os.path.exists(sp):
        os.makedirs(sp, exist_ok=True)


class Dictionnaire:
    def __init__ (self, version, name):
        # Dictionary
        self.sName = name
        self.lEntry = []

Modified helpers.py from [864faa54a3] to [82e1f566c6].

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    else:
        eraseFolderContent(sp)


def createFolder (sp):
    "make a folder if it doesn’t exist; don’t change anything if it exists"
    if not os.path.exists(sp):
        os.mkdir(sp)


def copyFolder (spSrc, spDst):
    "copy folder content from src to dst"
    try:
        shutil.copytree(spSrc, spDst)
    except OSError as e:







|







76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    else:
        eraseFolderContent(sp)


def createFolder (sp):
    "make a folder if it doesn’t exist; don’t change anything if it exists"
    if not os.path.exists(sp):
        os.makedirs(sp, exist_ok=True)


def copyFolder (spSrc, spDst):
    "copy folder content from src to dst"
    try:
        shutil.copytree(spSrc, spDst)
    except OSError as e:

Modified reader.py from [e2706fc6a2] to [3bdd92399c].