| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # coding: utf-8 | 2 # coding: utf-8 |
| 3 | 3 |
| 4 # This file is part of Adblock Plus <https://adblockplus.org/>, | 4 # This file is part of Adblock Plus <https://adblockplus.org/>, |
| 5 # Copyright (C) 2006-2015 Eyeo GmbH | 5 # Copyright (C) 2006-2015 Eyeo GmbH |
| 6 # | 6 # |
| 7 # Adblock Plus is free software: you can redistribute it and/or modify | 7 # Adblock Plus is free software: you can redistribute it and/or modify |
| 8 # it under the terms of the GNU General Public License version 3 as | 8 # it under the terms of the GNU General Public License version 3 as |
| 9 # published by the Free Software Foundation. | 9 # published by the Free Software Foundation. |
| 10 # | 10 # |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 if __name__ == "__main__": | 92 if __name__ == "__main__": |
| 93 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci
es.py") | 93 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci
es.py") |
| 94 | 94 |
| 95 try: | 95 try: |
| 96 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT]) | 96 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT]) |
| 97 except subprocess.CalledProcessError as e: | 97 except subprocess.CalledProcessError as e: |
| 98 print >>sys.stderr, e | 98 print >>sys.stderr, e |
| 99 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" | 99 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" |
| 100 | 100 |
| 101 app.run(debug=True) | 101 # FIXME - See https://github.com/mitsuhiko/werkzeug/pull/770 |
| 102 from werkzeug.serving import ThreadedWSGIServer |
| 103 ThreadedWSGIServer.daemon_threads = True |
| 104 |
| 105 app.run(debug=True, threaded=True) |
| OLD | NEW |