I am new to Ruby. I have Ruby code specifies the location of MyMain.dll, and the functions available. I load MyMain.dll with this call: require_relative "bin64/MyMain"
MyMain.dll in turn relies on Support1.dll, Suport2.dll, etc (actually 80+ support dll files). These files are in bin64/SupportFiles
If I include the SupportFiles folder in the system PATH, everything loads and runs like it should. However, I have been asked to avoid changing the system PATH if at all possible.
Is there a way to tell Ruby the SupportFiles location, or do I need to add a require_relative line for each support dll?
Update: after reading the replies, I have tried each of the options under "load support files", but without the system path, the call to load the main dll still fails:
#Load support files
Dir["bin64/SupportFiles/*.dll"].each {|file| require file }
Dir["bin64/SupportFiles/*.*"].each {|file| require file }
Dir["/bin64/SupportFiles/*.dll"].each {|file| require_relative file }
Dir["/bin64/SupportFiles/*.*"].each {|file| require file }
require_relative "bin64/SupportFiles"
#Load main dll
require_relative "bin64/MyMainDll"