Loading external script files with includes



  • I have a folder that contains a script I've written, I load the script into HISE using the right-click context menu, when I compile I get an error. I believe the error occurs because the external file I'm loading contains an include of another script that is outside of the project directory.

    onInit() - Line 1, column 1: File G:\...\_HISE\libraries\user_interface_v1.1.js not found



  • I've tried changing it to an absolute path and the error is slightly different:

    onInit() - Line 1, column 1: File {PROJECT_FOLDER}G:/.../libraries/user_interface_v1.1.js not found

    I didn't put {PROJECT_FOLDER} in my include statement.



  • Yes, this is the internal wildcard for the current project folder. I'll need to fix absolute file paths for includes, then it should work.



  • ok cool, thanks


 

2
Online

353
Users

1.1k
Topics

7.6k
Posts