Comment 2 for bug 422530

Revision history for this message
Bernard Czenkusz (bernie) wrote :

Done the following in the main trunk: vatstuff.py now has a variable CONFIG_LOCATION (line 85), which gives the filepath of a configuration file. If this variable is not set, the configuration file is at <scriptdirectory>/files/vatstuff.cfg

(Not set is the default in the main branch, it should probably be set to the preferred config file location in debian - such as /etc/vatstuff/vatstuff.cfg)

The configuration file files/vatstuff.cfg has been added and sets the default locations of the database, images, html, export, backup and log folders

vatstuff.cfg can be hand edited so these locations are either set relative to the script directory location, the users home folder, or given absolute path names - in the version in the main trunk I've set them relative to the scriptdirectory, so there's essentially no change from how vatstuff previously worked, but as these can now be set absolutely, to usr/share/vatstuff etc, I would expect this should solve the bug.

What do you think?