summary refs log tree commit diff
path: root/config.py
AgeCommit message (Collapse)Author
2015-12-30Added number parsing capabilitiesClayton G. Hobbs
See commands.tmp for an example. It's pretty neat, but it could still use some work. I thought of a really clever way to parse numbers, better than the one I came up with last night, but since I have a working implementation now I figure I'd better commit it. We have a new bug which causes the dictionary to be updated every time the program starts. I hope I didn't force that to happen last night or something, but I have a vague feeling I did.
2015-12-27Removed prints from config.pyClayton G. Hobbs
2015-12-27Moved paths to Config classClayton G. Hobbs
Paths of important files and directories are part of the program's configuration, no? We're making better use of XDG paths now. Only configuration-y things go in $XDG_CONFIG_HOME now, with cache-y and data-y things going in the appropriate places instead of just being crammed in with configuration.
2015-12-27Improved config/argument behaviourClayton G. Hobbs
The configuration file is now properly overridden by argument parsing. This was accomplished by loading the config file, then treating the specified options as a namespace for the ArgumentParser. This makes things from the config file get overridden iff they were specified on the command line (not simply from defaults set in the ArgumentParser).