How to add folder to autoload paths?
See original GitHub issueHello!
I try to load with ffi.Library()
some library located at the certain directory (for example lib/myLib.dll
). But this library is linked to another library (for example core.dll
). I thought myLib.dll
would search for core library at the same folder (lib/core.dll
), but it searches core library at the application’s root folder (I know this because I tried to move core.dll
to the root application folder and loading works).
So how can I add lib/
path to the autoload paths? I mean, paths which are traversed when one dll tries to load another it depens on?
Issue Analytics
- State:
- Created 8 years ago
- Comments:20 (3 by maintainers)
Top Results From Across the Web
Adding a directory to the load path in Rails? - Stack Overflow
create a new folder and class inside the /app directory; run spring stop on the command line; check the autoload-paths with bin/rails r...
Read more >Autoloading and Reloading Constants - Ruby on Rails Guides
Rails adds custom directories under app to the autoload paths automatically. For example, if your application has app/presenters , you don't need to...
Read more >How to use rails load paths, app, and lib directories. · GitHub
Another option is to add your whole lib dir into autoload_paths : config.autoload_paths += %W( #{config.root}/lib ) . This means you shouldn't explicitly ......
Read more >Making Rails recognize code in subfolders of default folders
I can change that by adding subfolders of any folder that's there by default to the autoload paths in config/application.rb .
Read more >The composer.json schema
autoload -dev (root-only); include-path; target-dir; minimum-stability ... If you want to exclude some files or folders from the classmap you can use the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@BONDbATIF
Try something like this:
Windows looks for DLLs on your system path, so you can either add the directories to the Path environmental variable, or you can modify the Path as you are going. Here is what I am doing that seems to be working for now: