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

use stdlib for plugins #376

Merged
merged 1 commit into from
Jun 22, 2017
Merged

use stdlib for plugins #376

merged 1 commit into from
Jun 22, 2017

Commits on Jun 21, 2017

  1. pyinstaller compat: use stdlib for plugins

    In order to allow for things like Pyinstaller, it is best to use a more
    standard approach to plugin support.
    
    This patch changes how you can load third party plugins. In order to do
    that, it goes from the previous way:
    
        from pyroute2 import config
        config.data_plugins_path.append('/path/to/3rd/party/plugins')
    
    to:
    
        from my.pkg import plugin_pkg
        from pyroute2 import config
        config.data_plugins_pkgs.append(plugin_pkg)
    
    Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
    celebdor committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    ca3c3b4 View commit details
    Browse the repository at this point in the history