File tree 2 files changed +4
-12
lines changed
larryseyer_Live keys scripts
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
-- @description Live keys scripts
2
2
-- @author Larry Seyer
3
- -- @version 1.0
3
+ -- @version 1.0.0-1
4
+ -- @changelog Fix broken include path due to packaging changes
4
5
-- @provides
5
6
-- [nomain] .
6
7
-- [main] larryseyer_Live keys scripts/action.lua > larryseyer_Live keys scripts - Track 1.lua
Original file line number Diff line number Diff line change 7
7
8
8
local script_name = ({reaper .get_action_context ()})[2 ]:match (" ([^/\\ _]+)%.lua$" )
9
9
local this_live_track = tonumber (script_name :match (" Track (%d+)" )) or - 1
10
+ local path = debug.getinfo (1 , ' S' ).source :match (' ^@(.+)[\\ //]' )
10
11
11
- function get_script_path ()
12
- if reaper .GetOS () == " Win32" or reaper .GetOS () == " Win64" then
13
- return debug.getinfo (1 ,' S' ).source :match (" (.*" .. " \\ " .. " )" ):sub (2 ) .. " \\ " -- remove "@"
14
- end
15
- return debug.getinfo (1 ,' S' ).source :match (" (.*" .. " /" .. " )" ):sub (2 ) .. " /"
16
- end
17
-
18
- local path = string.format (' %s/../larryseyer_Live keys scripts.lua' , get_script_path ())
19
-
20
- dofile (path )
21
-
12
+ dofile (string.format (' %s/larryseyer_Live keys scripts.lua' , path ))
22
13
Live_Inst_Main_Logic (this_live_track )
You can’t perform that action at this time.
0 commit comments