View Single Post
Old 09-11-2019, 08:05 AM   #4
kenm
Human being with feelings
 
Join Date: Dec 2011
Location: San Jose, CA, USA
Posts: 115
Default

Quote:
Originally Posted by cfillion View Post
Use dofile with an absolute path or add the directory to package.path.

Code:
local path = ({reaper.get_action_context()})[2]:match('^.+[\\//]')
dofile(path .. 'ATOM.lua')
Thanks @cfillion. I need to research the difference between dofile and require to understand which way to go.

Ken

Last edited by kenm; 09-11-2019 at 08:18 AM.
kenm is offline   Reply With Quote