-
Notifications
You must be signed in to change notification settings - Fork 258
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
Python plugins: add default module_path to search path #1038
Conversation
5e122ff
to
edcf6e4
Compare
d153f3c
to
1b0b509
Compare
1b0b509
to
99ed130
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked first commit and the changes look good to me.
Good work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, only found some typos.
...c/plugins/filed/python/ldap/python-ldap-conf.d/bareos-dir.d/fileset/plugin-ldap.conf.example
Outdated
Show resolved
Hide resolved
docs/manuals/source/TasksAndConcepts/Plugins/DirectorPlugins/PythonDirPlugin.rst.inc
Outdated
Show resolved
Hide resolved
docs/manuals/source/TasksAndConcepts/Plugins/DirectorPlugins/PythonDirPlugin.rst.inc
Outdated
Show resolved
Hide resolved
docs/manuals/source/TasksAndConcepts/Plugins/FileDaemonPlugins/PythonFdPlugin.rst.inc
Outdated
Show resolved
Hide resolved
Use PYTHON_MODULE_PATH as default Python module search path for Python plugins. Also use identical "PyLoadModule" function for all daemons. Before all 3 python plugins did use there own version of the PyLoadModule function.
Co-authored-by: sduehr <stephan.duehr@bareos.com>
Only keep general information about Python Plugins in the "Tasks and Concepts" chapter, moving the implentation details to the Development Guide chapter. Change the ordering in the Developement chapter to start with the current version of the Python Plugin: * Python Plugins for Bareos >= 20 * Python Plugins for Bareos < 20 * Migrating Python Plugins to Bareos >= 20
Co-authored-by: sduehr <stephan.duehr@bareos.com>
689a586
to
6e128f6
Compare
@sduehr thank you for your suggestions. I've applied them and then rebased them on master, because of a merge conflict. It would be great, if you can review this PR again. Also 5 check-marks are not set. Do you request changes from my side? |
As discussed: not version change required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, looks good now.
Currently all Python modules get installed to the plugin directory.
However, every plugin configuration requires the parameter module_path set to this value.
This PR adds the Python Plugin module path to the default search path, so that specifying the module_path is only unnecessary in non-standard installations.
OP#5043
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-merge
does not report any problemsgit status
should not report modifications in the source tree after building and testing