Open Jojain opened 3 years ago
I just realized that it's actually because of the try/except, if I remove it I have a NameError while importing which make sense.
I suppose there is no way to have a show_object call in another file than the one that cq-editor runs then?
I could add show_object
to builtins
. Need to think though if it is a good idea.
Hello, I have noticed that if I have in a file 'file1.py' a function like this this :
And then in another file 'file2.py' I import this function :
cq-editor won't render my cylinder, while if the function is in the main file it will render. Is there a way to make it work this way ?