Application Preferences

Malcolm Greene python at bdurham.com
Mon Aug 19 11:08:38 EDT 2019


Hi Dave,

> I agree that a traditional INI file is the easiest way, especially since Python supports them.  So if I understand you, your apps look like this:

Yes with the following nuance for our application sized scripts that require multiple configuration files. In this latter case, we place all config files in a ../conf folder (see the OR option below).

-App Dir
   |
   +-App Code Folder (src)
      |
      +-App INI file

OR

-App Dir
   |
   +-conf
      |
      +-App INI file

AND

-Home Folder (the default location, but user can select other locations)
   |
   +-App INI Folder
      |
      +-App INI file

Malcolm



More information about the Python-list mailing list