Task class taskPath


#1

How to use the Task class provided by API?

I tried to use it in my package and gave my coffee file name to it, but of course it is not present in the path where atom was started.
As a solution now I use

atom.packages.getLoadedPackage 'my-package-name'

Is this the best way to locate my script file? A hint in the docs would be useful.