|
1 | 1 | script "revideextensionlibrary" |
2 | 2 | local sExtensions, sExtensionProperties, sModuleVersion |
3 | 3 |
|
| 4 | +constant kExtensionUtils = "com.livecode.library.extension-utils" |
| 5 | +private function __PathToExtensionUtils |
| 6 | + set the itemdelimiter to "." |
| 7 | + return revIDESpecialFolderPath("extensions") & slash & \ |
| 8 | + kExtensionUtils & slash & item -1 of kExtensionUtils & "." & \ |
| 9 | + "livecodescript" |
| 10 | +end __PathToExtensionUtils |
| 11 | + |
4 | 12 | on extensionInitialize |
5 | | - if the target is me then |
6 | | - insert script of me into back |
| 13 | + if the target is not me then |
| 14 | + pass extensionInitialize |
7 | 15 | end if |
8 | 16 |
|
9 | | - # Explicitly load extension utils first |
10 | | - revInternal__LoadLibrary "extension-utils" |
| 17 | + insert script of me into back |
11 | 18 |
|
| 19 | + # Explicitly load extension utils first |
| 20 | + revInternal__LoadLibrary "extension-utils", __PathToExtensionUtils() |
| 21 | + |
| 22 | + if the result is not empty then |
| 23 | + throw the result |
| 24 | + end if |
| 25 | + |
12 | 26 | # Load all the extensions ready for use |
13 | 27 | __extensionsLoad |
14 | 28 | end extensionInitialize |
@@ -844,7 +858,6 @@ private command addToList pElement, @xArray |
844 | 858 | put pElement into xArray[the number of elements in xArray + 1] |
845 | 859 | end addToList |
846 | 860 |
|
847 | | -constant kExtensionUtils = "com.livecode.library.extension-utils" |
848 | 861 | on __extensionsLoad |
849 | 862 | local tDataA |
850 | 863 | # Fetch all the available data about extensions in the search paths |
|
0 commit comments