~nataliabidart/magicicada-server/use-venv-dependencies

« back to all changes in this revision

Viewing changes to lib/ubuntuone/supervisor/start-supervisord.py

  • Committer: Natalia
  • Date: 2018-04-05 20:49:42 UTC
  • Revision ID: natalia.bidart@ubuntu.com-20180405204942-wlf2cwb8k6lh4rl5
Finally all tests passing. Update copyright notices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# -*- coding: utf-8 -*-
3
3
 
4
4
# Copyright 2008-2015 Canonical
5
 
# Copyright 2015 Chicharreros (https://launchpad.net/~chicharreros)
 
5
# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
6
6
#
7
7
# This program is free software: you can redistribute it and/or modify
8
8
# it under the terms of the GNU Affero General Public License as
36
36
    """Write out filled in conf template in tmp."""
37
37
    template = open(os.path.join(ROOT_DIR, tpl)).read()
38
38
 
39
 
    template_vars = {}
40
 
    template_vars['inet_http_server_port'] = inet_http_server_port
41
 
    template_vars['basepath'] = ROOT_DIR
42
 
    template_vars['tmp_dir'] = TMP_DIR
 
39
    template_vars = {
 
40
        'inet_http_server_port': inet_http_server_port,
 
41
        'basepath': ROOT_DIR,
 
42
        'tmp_dir': TMP_DIR,
 
43
        'pythonpath': ':'.join(filter(None, sys.path)),
 
44
    }
43
45
 
44
46
    conf = template % template_vars
45
47