Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Here again--re: xml parsing for svg
#2
OK, lemme spend the weekend on that, XML namespaces are always a pleasure (*)

Meanwhile:

Code:
imageExt=os.path.splitext(image.filename)[1]
imageName=os.path.splitext(image.filename)[0]

is best written using direct "unpacking":

Code:
imageName,imageExt=os.path.splitext(image.filename)

Also, to avoid hard-coding options number, I found a sleek technique. The whole thing is explained here.

(*) Not the whole weekend, mind Smile
Reply


Messages In This Thread
Here again--re: xml parsing for svg - by carmen - 10-25-2019, 09:28 PM
RE: Here again--re: xml parsing for svg - by Ofnuts - 10-25-2019, 11:07 PM

Forum Jump: