Replies: 1 comment 2 replies
-
That’s probably the way it should have been. That’s kind of what GstarCAD does. @command()
def gdoit():
try:
...
except Exception as err:
print(err)
@command(NOHISTORY | NOBEDIT)
def gdoit():
try:
...
except Exception as err:
print(err) I had taken inspiration from lisp
I thought about changing it, I didn’t know how (I still don’t) to make the decorator, and how to find it with the relationship to the target function from the dictionary Also, this had a slightly dangerous side effect if you change the decorator to point at a new function, then pyreload Now, I feel it’s baked in. I have samples all over the internet now. this change will break everyone's code |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can you expose this function in
Ap
module? This would be useful e.g. for marking functions as commands via a decorator instead of giving them a name with the prefixPyRxCmd_
.PyRx/PyRxCore/PyRxModuleLoader.cpp
Line 120 in 7cabe18
Beta Was this translation helpful? Give feedback.
All reactions