Skip to content

systemwide defaults are ignored if user rc is found, this is atypical behavior #11279

Closed

Description

@PorcelainMouse

Bug report

Normally, systemwide configuration files at not completely ignored just because a local/user configuration file exists. But MPL will ignore default configuration values in /etc/matplotlibrc if a user matplotlibrc is found.

The documentation states that user configuration files are searched first, which, if you think about it, only makes sense if the configuration files are all mutually exclusive. But, this is not stated or acknowledged in the documentation, elsewhere. Since mutual exclusivity is abnormal behavior for configuration files, can you please, at least, make this more clear in the documentation?

Is it possible to implement more conventional behavior where the system-wide defaults are always read, if they exist, and the user-specific or local configurations override them?

Activity

  1. anntzer commented on May 21, 2018

    @anntzer
    Contributor

    That's basically a duplicate of #6320, and yes we have plans to fix that (essentially #9528).

  2. WeatherGod commented on May 23, 2018

    @WeatherGod
    Member
  3. anntzer commented on May 23, 2018

    @anntzer
    Contributor

    #9528 would fix this by allowing you to implement whatever fallback logic you want, it's Python, you can run whatever code you want, you can manipulate sys.path, whatever. And yes I know your position regarding that statement, we can keep the discussion to that thread.
    I have no problems with anyone implementing cascading logic into the current system either... (but #6320 is sufficient to track this issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions