381
382
383
384
385
386
387
388
389
390
391
392
393
394
|
#xFilePicker.setDisplayDirectory("")
#xFilePicker.setMultiSelectionMode(False)
#nResult = xFilePicker.execute()
#if nResult == 1:
# lFile = xFilePicker.getSelectedFiles()
# lFile = xFilePicker.getFiles()
# print(lFile)
# 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)
|
>
|
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)
|