Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit f66afae

Browse files
committed
[[ CodeResources ]] Load LCS extension scripts from repo
This patch ensures that LCS extension scripts are loaded from the original source in the repo rather than from the packaged extensions build folder.
1 parent d66cc1a commit f66afae

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Toolset/home.livecodescript

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,21 @@ function revInternal__StackFiles
525525
if tFolder begins with "." then next repeat
526526
put return & tComponentFolder & slash & tFolder after tFolders
527527
end repeat
528+
529+
-- commercial extensions (ensure they are loaded from the repo)
530+
local tExtensionFolder
531+
put revEnvironmentCommercialRepositoryPath() & "/extensions/script-libraries" into tExtensionFolder
532+
repeat for each line tFolder in folders(tExtensionFolder)
533+
if tFolder begins with "." then next repeat
534+
put return & tExtensionFolder & slash & tFolder after tFolders
535+
end repeat
536+
537+
-- extensions (ensure they are loaded from the repo)
538+
put revEnvironmentRepositoryPath() & "/extensions/script-libraries" into tExtensionFolder
539+
repeat for each line tFolder in folders(tExtensionFolder)
540+
if tFolder begins with "." then next repeat
541+
put return & tExtensionFolder & slash & tFolder after tFolders
542+
end repeat
528543
end if
529544

530545
local tStackFiles, tStackName

Toolset/libraries/revinitialisationlibrary.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ command revInternal__LoadLibrary pLibrary, pFullPath
2424
put kLCLibraryPrefix & "." & pLibrary into tStackName
2525
else if the environment begins with "development" and \
2626
there is a stack pFullPath then
27-
put the name of stack pFullPath into tStackName
27+
put the short name of stack pFullPath into tStackName
2828
else
2929
return "no stack for library" && pLibrary
3030
end if

0 commit comments

Comments
 (0)