-
Notifications
You must be signed in to change notification settings - Fork 47
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
Set-up ghostscript automatically when initialising behat and adding better way to find executables #141
base: master
Are you sure you want to change the base?
Conversation
After I wrote my first version of this I took a step back and decided to tackle one of the more irritating issues I've been frustrated by - the fact that the defaults in config-dist.json are so specific for paths. I've adjusted it to use the find_executable function of distutils.spawn, which checks up the $PATH as your shell does. Of course, if you have a non-null, non-empty value in the config.json (or config-dist.json) it will prefer that, but otherwise it will do something sane. This means that my I've haven't yet expanded this to all executables, I thought the dust should be allowed to settle. |
Hi Andrew, Why is that sitting in the pull request "Add an alias for mdk theme to set the instance theme"? |
Looking at the patch, I am not sure I agree that Behat init should automatically set the path to gs. Maybe what we need is a |
Not properly looked at what you are asking but |
Dan is correct, we moved system executable paths out-of-plugin and white listed them in behat_clean_init_config() in MDL-44839 So setting $CFG->pathogs to proper executable is enough. Not sure if finding the executable and using it is a good option or asking user about it as this is only expected during mdk init process. |
Hi all, Not sure what happened with the title of this pull request. I filed it using GitHub's own As both Dan and Rajesh say, Perhaps we need a way of setting these in Moodle from a new mdk command. I feel that we should try and use the system defaults where possible - we currently do not provide either an initial setup question asking for these values, nor an upgrade script to ask for them. At the moment that isn't an option. The stock value of The default values in config-dist.json are very specific to Fred's dev environment (I presume). Some of them are different to the locations you'd get with brew, and probably different in some areas to Fedora. The changes I've made here use the values in your config.json, fall back on the config-dist.json, and only then if the value was not found do they go to the shell. For a majority of users, they will not cause issues. There are just a handful of cases where you'd have to fettle things manually and I can't think of any specific examples. The reason that I went for putting this in |
87b93e4
to
0a1b6c2
Compare
No description provided.