Description
The labscript_suite
variable in labconfig used to point to the install directory. Now we don't have an install directory per se that we explicitly need to know about - the packages are expected to be somewhere in the python path and should work so long as they are. Instead we have a 'profile' directory where user data and config is stored. This profile's path is hard-coded so can't be modified anyway (and we can't make it customisable via labconfig since labconfig is in the profile directory - this is a bootstrapping problem).
The only purpose this path serves is as a variable the user can use in other configurable settings.
Therefore let's get rid of it, and introduce the convention that relative paths in labconfig variables are interpreted as relative to the profile directory.
This will mean writing a get_path method or something for LabConfig
that will interpret paths this way, and callers that want paths will need to call it instead of the regular get
function.
So I'll aim to add that to labconfig.py, remove the labscript_suite
variable, and then grep through project repos for instances of reading the config variables which are paths.