| Total Complexity | 0 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | # ----------------------------------------------------------------------------- |
||
| 3 | # Copyright (c) 2015 Yann Lanthony |
||
| 4 | # Copyright (c) 2017-2018 Spyder Project Contributors |
||
| 5 | # |
||
| 6 | # Licensed under the terms of the MIT License |
||
| 7 | # (See LICENSE.txt for details) |
||
| 8 | # ----------------------------------------------------------------------------- |
||
| 9 | """The qtsass Watcher is responsible for watching and recompiling sass. |
||
| 10 | |||
| 11 | The default Watcher is the QtWatcher. If Qt is unavailable we fallback to the |
||
| 12 | PollingWatcher. |
||
| 13 | """ |
||
| 14 | |||
| 15 | # yapf: disable |
||
| 16 | |||
| 17 | from __future__ import absolute_import |
||
| 18 | |||
| 19 | # Local imports |
||
| 20 | from qtsass.watchers.polling import PollingWatcher |
||
| 21 | |||
| 22 | |||
| 23 | try: |
||
| 24 | from qtsass.watchers.qt import QtWatcher |
||
| 25 | except ImportError: |
||
| 26 | QtWatcher = None |
||
| 27 | |||
| 28 | |||
| 29 | # yapf: enable |
||
| 30 | |||
| 31 | Watcher = QtWatcher or PollingWatcher |
||
| 32 |