Skip to content

labscript_suite variable in labconfig is not used as config and is misleading #35

Closed
@chrisjbillington

Description

@chrisjbillington

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions