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

Commit 3f9855c

Browse files
author
Monte Goulding
authored
Merge pull request #6568 from montegoulding/drawingresourcepath
[[ Drawing ]] Fallback to relative resource path
2 parents dff5f69 + 6662ab9 commit 3f9855c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

extensions/script-libraries/drawing/drawing.livecodescript

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,14 +3277,16 @@ end seqLast
32773277
******************************************************************************/
32783278

32793279
private function _GetResourcesPath
3280-
if the environment begins with "development" then
3280+
local tResourcesFolder
3281+
-- in the mapping, tResourcesFolder begins with ./
3282+
try
3283+
put char 3 to -1 of revLibraryMapping[the short name of me & \
3284+
slash & "resources"] into tResourcesFolder
3285+
end try
3286+
if tResourcesFolder is empty then
32813287
set the itemDelimiter to slash
32823288
return item 1 to -2 of the filename of me & slash & "resources"
32833289
else
3284-
local tResourcesFolder
3285-
-- in the mapping, tResourcesFolder begins with ./
3286-
put char 3 to -1 of revLibraryMapping[the short name of me & slash & "resources"] \
3287-
into tResourcesFolder
32883290
put specialFolderPath("resources") & slash before tResourcesFolder
32893291
return tResourcesFolder
32903292
end if

0 commit comments

Comments
 (0)