config_resolver

Software Screenshot:
config_resolver
Software Details:
Version: 3.2.1
Upload Date: 20 Feb 15
Developer: Michel Albert
Distribution Type: Freeware
Downloads: 9

Rating: nan/5 (Total Votes: 0)

config_resolver is a very simple and small utility to provide a way to search for configuration files. For now it is only tested on posix systems, but it should also work on Windows.

For posix systems it will search for config files in the following order:

- A file named in the environment variable < APP_NAME >_CONFIG
- The current active working directory (of the running process)
- ~/.< group_name >/< app_name >/< conf_name >
- /etc/< group_name >/< app_name >/< conf_name >

The complete search path can be overwritten by setting the environment variable < APP_NAME >_PATH, separating the different paths by either : (posix) or ; (windows).

Note: This is a small piece of code which I ended up copy/pasting over and over from project to project. I decided to refactor it out into a separate project to facilitate updates. It's something I use for myself. If you find it useful for yourself, feel free to use it!

Requirements:

  • Python

Other Software of Developer Michel Albert

Pickup
Pickup

15 Apr 15

Comments to config_resolver

Comments not found
Add Comment
Turn on images!