@George Sorry about that, here is the line 10 highlighted. @Mekkablue, I launched my App this morning and the code pop up in macro panel. i did run the code but this is the reply i get "File “”, line 10
for p in Layer.paths:
^
IndentationError: expected an indented block
"
As @mekkablue mentioned, there’s no indented code following line 10. If there’s no code after line 10, that’s part of the problem. You’re missing some code. Also, the def looks to be a class method definition. It’s unlikely to work as you expect unless you’re calling that function with the first argument defined as the code expects.
Posting the entire code between two groups of ``` in a reply in this forum as @GeorgSeifert mentioned earlier might help in troubleshooting. And perhaps mentioning what you’re trying to do would help.