config.py needs to know if vatstuff is installed or not
Bug #422530 reported by
Alice Kærast
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VATStuff |
Fix Released
|
Undecided
|
Alice Kærast |
Bug Description
config.py currently assumes that vatstuff hasn't been installed and so just tries loading files relative to the script directory. We need to get the debian package to modify config.py (or vatstuff.py?) to instead load the files from /usr/share/vatstuff when it has been installed.
This should be possible by putting a patch file in debian/patches which renames vatstuff.py to vatstuff and sets a variable in config.py (or vatstuff) to point to /usr/share/vatstuff (or whatever the debian way of refering to that directory is).
Related branches
lp:~vatstuffteam/vatstuff/trunk
Merged
into
lp:vatstuff
- Alice Kærast (community): Approve
- Bernard Czenkusz: Needs Fixing (initial)
- Diff: None lines
Changed in vatstuff: | |
assignee: | nobody → Alice Kærast (kaerast) |
Changed in vatstuff: | |
status: | New → Fix Committed |
Changed in vatstuff: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Debian policy also expects log files to be under /var - so that is
another variable required to point to another location, and I expect
other distributions may have their own rules.
I will have a go at a configuration file - a text file so it can be
changed either automatically on installation, or set for a particular
distribution.
I'm thinking it should consist of variables pointing at directory
locations, which sets the locations of logs etc, either absolutely or
relatively.
The program will need to know where this configuration file is, I
believe in Debian configuration files are held under /etc/<program_name/
so in the top module vatstuff.py there will have to be a variable set to
the location of the configuration file - and this can be changed for
different distribution builds