Differences From Artifact [1cf16e149d]:
- File gc_lang/fr/oxt/DictOptions/LexiconEditor.py — part of check-in [507372a50d] at 2018-04-14 17:31:14 on branch trunk — [lo][bug] lexicon editor: USERPROFILE unknown on Linux (user: olr, size: 35001) [annotate] [blame] [check-ins using]
To Artifact [7c6e6162cd]:
- File gc_lang/fr/oxt/DictOptions/LexiconEditor.py — part of check-in [b9c72f6c5f] at 2018-04-14 19:38:35 on branch trunk — [lo] lexicon editor: update + translations (user: olr, size: 35085) [annotate] [blame] [check-ins using] [more...]
| ︙ | |||
381 382 383 384 385 386 387 388 389 390 391 392 393 394 | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | + |
#xFilePicker.setDisplayDirectory("")
#xFilePicker.setMultiSelectionMode(False)
#nResult = xFilePicker.execute()
#if nResult == 1:
# lFile = xFilePicker.getSelectedFiles()
# lFile = xFilePicker.getFiles()
# print(lFile)
# MessageBox(self.xDocument, "File(s): " + str(lFile), "DEBUG", INFOBOX)
# workaround
spfImported = os.path.join(os.path.expanduser("~"), "fr.personal.json")
if os.path.isfile(spfImported):
with open(spfImported, "r", encoding="utf-8") as hDst:
sJSON = hDst.read()
try:
sTest = json.loads(sJSON)
|
| ︙ |