On 7/20/20 at 6:48 PM, [email protected] (Neil Faiman) wrote:

I have a persistent include script written in Swift. It needs to imp;ort a separately compiled Swift module, which is just a Mac .framework file. The only way that I have been able to tell a Swift script where to find an imported framework is with the -F option on the script command line (or on the shebang line at the top of the script). The easiest way to accomplish that seems to be to put the framework in the project's Templates and Includes directory, along with the script itself. Then I could just put "-F ." on the shebang line. But that only works if "." is the Templates and Includes directory ...

When running a Unix script/executable, the "BBEditTemplateDirectory" environment variable is set to point to the "Templates and Includes" directory; or at least it should be. You can test this with an include that does a `printenv`; if it works then perhaps you can employ that in your Swift script somehow.

Enjoy,

R.
--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-AB174D09B1B04FE2B3F12DBA2DFE9DC8%40Stormwind.local.

Reply via email to