Changing path end extension type from "flush" to "square" using Python script

Hello, I am making some paths using a python script.
I would like the path start and end extensions to be of the "square" type, as defined when you go to shape properties and change the extension type in the drop-down menu.
I cannot find how to script this in Python.
I am working with many shapes with variable widths so would prefer to not have to update the start and end points of each one to get the same effect as the "square" extension type.
Thank you in advance.

Comments

Sign In or Register to comment.