File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,10 @@ function util.assert_line_by_line(s1, s2)
182182end
183183
184184local vars_prefix = { util .os_set (" LUA_PATH" , util .os_path (package.path )) .. util .os_join }
185+ table.insert (vars_prefix , util .os_set (" LUA_CPATH" , util .os_path (package.cpath )) .. util .os_join )
185186for i = 1 , 4 do
186187 table.insert (vars_prefix , util .os_set (" LUA_PATH_5_" .. tostring (i ), util .os_path (package.path )) .. util .os_join )
188+ table.insert (vars_prefix , util .os_set (" LUA_CPATH_5_" .. tostring (i ), util .os_path (package.cpath )) .. util .os_join )
187189end
188190
189191local first_arg = 0
Original file line number Diff line number Diff line change 1010 -- get the whole API into package.loaded
1111 require (" teal" )
1212
13+ require (" tlcli.main" )({... })
14+
1315 -- but otherwise don't pollute package.path inadvertedly
1416 package.path = save_package_path
1517end
16-
17- require (" tlcli.main" )({... })
You can’t perform that action at this time.
0 commit comments