apper icon indicating copy to clipboard operation
apper copied to clipboard

Should command imports always be relative?

Open tiktuk opened this issue 5 years ago • 0 comments

I got this error in my second apper Add-In despite SampleCommand2 existing:

Screenshot 2020-09-19 at 19 22 14

Then I changed

from commands.SampleCommand2 import SampleCommand2

to

from .commands.SampleCommand2 import SampleCommand2

and it worked (note the dot in front of command.

So maybe this should be in the cookie cutter template?

tiktuk avatar Sep 19 '20 17:09 tiktuk