Merge lp:~rafalcieslak256/ubuntu-accomplishments-daemon/982246 into lp:ubuntu-accomplishments-daemon
Status: | Merged |
---|---|
Merged at revision: | 13 |
Proposed branch: | lp:~rafalcieslak256/ubuntu-accomplishments-daemon/982246 |
Merge into: | lp:ubuntu-accomplishments-daemon |
Diff against target: |
164 lines (+77/-26) 5 files modified
accomplishments/daemon/api.py (+8/-3) accomplishments/util/__init__.py (+3/-0) accomplishments/util/paths.py (+44/-15) bin/accomplishments-daemon (+11/-4) bin/accomplishments-daemon-fg (+11/-4) |
To merge this branch: | bzr merge lp:~rafalcieslak256/ubuntu-accomplishments-daemon/982246 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jono Bacon | Pending | ||
Review via email: mp+102030@code.launchpad.net |
Description of the change
This branch is meant to fix #982246 in daemon, by introducing proper PATH setting.
It allows to install the daemon with a given prefix. (python setup.py install --prefix /where/to/install
Although this is possible at the moment, the daemon will start only if the prefix is /usr, or it is being run without installation, in any other case it will crash on startup. This branch fixes this issue.
This feature is quite cool, I am delighted to be able to successfully install the application to /opt/accomplish
=========
First part of the fix is in the bin/accomplishm
The same code is added to bin/accomplishm
Next piece of fix is a complete rewrite of accomplishments
Lastly, the new PATH variable is not passed to subprocesses - I've solved that by setting module_dir variables in paths.py, storing the path to accomplishment.* modules. This way they can be used to prepare os.environ in the api.py file.
Notes concerning integration with viewer when installing both are available in related viewer's branch's merge request: https:/ /code.launchpad .net/~rafalcies lak256/ ubuntu- accomplishments -viewer/ 982246/ +merge/ 102031