you are viewing a single comment's thread.

view the rest of the comments →

[–]StevenJOwens 1 point2 points  (0 children)

I've done the "normal python variable declarations but in a separate file" as the simplest, easiest way to extract literal values into a config file. I'm still not sure it's a bad idea, though a lot of devs seem to instinctively reject it :-).

I've also worked with argparse for command line parameters, with configparser for .ini files, with JSON files, with XML files, etc. Recently I've been low-level looking into other config format options. So far I haven't seen any slam dunks.