Could we prepend /snap/bin to $PATH instead?  Something like this in the 
__main__ block:

    path_segments = os.environ["PATH"].split(":")
    if "/snap/bin" not in path_segments:
        path_segments.insert(0, "/snap/bin")
        os.environ["PATH"] = ":".join(path_segments)
-- 
https://code.launchpad.net/~twom/lpbuildbot-worker/+git/lpbuildbot-worker/+merge/390728
Your team Launchpad code reviewers is requested to review the proposed merge of 
~twom/lpbuildbot-worker:correct-lxc-location into lpbuildbot-worker:main.

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to