changeset 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 0e9341e537d6
children 5cefc6ab302f
files src/server/constants.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/constants.py	Sun Jan 24 20:06:06 2016 +0100
+++ b/src/server/constants.py	Mon Jan 25 16:39:40 2016 +0100
@@ -17,11 +17,7 @@
 # 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/>.
 
-try:
-    from libervia.common import constants
-except ImportError:
-    # needed for installing libervia the first time
-    from src.common import constants
+from ..common import constants
 
 
 class Const(constants.Const):