Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make location(s) of scripts folder(s) accessible without re-reading config #3

Open
eode opened this issue Oct 14, 2015 · 2 comments
Open

Comments

@eode
Copy link

eode commented Oct 14, 2015

I'd like to make a small addition to library.py that automatically loads anything in /autoload. I may be missing something, as I'm not that familiar with Java, but looking through the source, I couldn't find any way to get the path of the scripts folder without re-loading the config.yml file.

If I'm correct, this can just be done by making EasyScript.config (or a copy of it) public, yes?

@eode
Copy link
Author

eode commented Oct 14, 2015

Note: Currently I am able to easily get around this by creating my own ESConfig(), but it seems like I should be using the same esconfig object as EasyScript is using (or a fresh copy), rather than something loaded arbitrarily from the disk, which may have changed.

@cybertiger
Copy link
Owner

You're right there should probably be a public accessor for ESConfig, I'll add one, it'll probably be named getESConfig() or something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants