Mercurial > libervia-web
comparison src/server/constants.py @ 860:05cd9dc775e6
server: use of relative import instead of try/except block in server/constants
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 25 Jan 2016 16:39:40 +0100 |
parents | fd438e51bda8 |
children | 5cefc6ab302f |
comparison
equal
deleted
inserted
replaced
859:0e9341e537d6 | 860:05cd9dc775e6 |
---|---|
15 # GNU Affero General Public License for more details. | 15 # GNU Affero General Public License for more details. |
16 | 16 |
17 # You should have received a copy of the GNU Affero General Public License | 17 # You should have received a copy of the GNU Affero General Public License |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
20 try: | 20 from ..common import constants |
21 from libervia.common import constants | |
22 except ImportError: | |
23 # needed for installing libervia the first time | |
24 from src.common import constants | |
25 | 21 |
26 | 22 |
27 class Const(constants.Const): | 23 class Const(constants.Const): |
28 | 24 |
29 APP_NAME = 'Libervia' | 25 APP_NAME = 'Libervia' |