Skip to content

Commit 78da768

Browse files
Load externals from the same directory as the standalone
1 parent 02008e0 commit 78da768

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/_testlib.livecodescript

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,13 @@ on TestLoadExtension pName
322322
end TestLoadExtension
323323

324324
on TestLoadExternal pExternal
325+
local tEnginePath
326+
put specialfolderpath("engine") into tEnginePath
327+
325328
if the platform is "MacOS" then
326-
set the externals of the templateStack to TestGetEngineRepositoryPath() & slash & pExternal & ".bundle"
329+
set the externals of the templateStack to tEnginePath & slash & pExternal & ".bundle"
327330
else if the platform is "linux" then
328-
set the externals of the templateStack to TestGetEngineRepositoryPath() & slash & pExternal & ".so"
331+
set the externals of the templateStack to tEnginePath & slash & pExternal & ".so"
329332
end if
330333

331334
create stack pExternal && "External"

0 commit comments

Comments
 (0)