Skip to content

Naming convention for config files #179

@XorUnison

Description

@XorUnison

As it stands right now the code looks for a
.manim.cfg in the user directory, and a
manim.cfg in the current working directory.
Note the difference in the leading dot.

The initial reason for this was the convention to hide configuration files that go in the user directory, which is far as I get is only a Linux relevant convention, since Windows uses file attributes to hide files, not leading dots.

I'm opposed to this mixed naming for two reasons.

  1. The smaller reason is copypastability, as like this either file could almost directly be used as a template for the other, but with the additional hoop of having to add/remove a dot.
  2. The bigger reason is the potential for confusion. Having the naming convention differ in just one character, and a dot at that, is a sure fire recipe for some people to forget this small difference at times, leading to wrongly named and hence not working config files, or even completely missing that difference in the first place, since it's easy to miss the addition/subtraction of a dot on a file name when already primed for one or the other convention.
    Point in case, despite carefully reading @leotrs post in default.cfg isn't documented #178 2 mentions of .manim.cfg made me completely miss that on the third time it was intentionally manim.cfg.

With that said I have no strong opinion on what the convention is, so long as it is consistent. With dot, without, or accepting with/without in both places are all fine.

Probably allowing both presence and lack of a leading dot is the best approach simply to allow Linux users to hide their config files or not while also making sure that config files can't that easily be misnamed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdditions and improvements in generalpr:deprecationDeprecation, or removal of deprecated code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions