changeset 490:c4d6d1254ec1

server side: fixes constants import for installing libervia the first time
author souliane <souliane@mailoo.org>
date Thu, 26 Jun 2014 08:10:30 +0200
parents 1ce6133993e4
children c97fe4059f71
files src/server/constants.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/constants.py	Wed Jun 25 14:02:50 2014 +0200
+++ b/src/server/constants.py	Thu Jun 26 08:10:30 2014 +0200
@@ -17,7 +17,11 @@
 # 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 libervia.common import constants
+try:
+    from libervia.common import constants
+except ImportError:
+    # needed for installing libervia the first time
+    from src.common import constants
 
 
 class Const(constants.Const):