jp: using C.APP_URL for application url
This commit is contained in:
parent
6608eafb9f
commit
647487fc1d
2 changed files with 27 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ from sat.tools.jid import JID
|
|||
from sat_frontends.bridge.DBus import DBusBridgeFrontend
|
||||
from sat.core import exceptions
|
||||
import sat_frontends.jp
|
||||
from sat_frontends.jp.constants import Const as C
|
||||
try:
|
||||
import progressbar
|
||||
except ImportError:
|
||||
|
|
@ -50,7 +51,7 @@ except ImportError:
|
|||
#consts
|
||||
prog_name = u"jp"
|
||||
description = """This software is a command line tool for XMPP.
|
||||
Get the latest version at http://sat.goffi.org"""
|
||||
Get the latest version at """ + C.APP_URL
|
||||
|
||||
copyleft = u"""Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Jérôme Poisson (aka Goffi)
|
||||
This program comes with ABSOLUTELY NO WARRANTY;
|
||||
|
|
|
|||
25
frontends/src/jp/constants.py
Normal file
25
frontends/src/jp/constants.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Primitivus: a SAT frontend
|
||||
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Jérôme Poisson (goffi@goffi.org)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from sat_frontends.quick_frontend import constants
|
||||
|
||||
|
||||
class Const(constants.Const):
|
||||
|
||||
APP_NAME = "jp"
|
||||
Loading…
Reference in a new issue