diff src/server/constants.py @ 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 0bbbef1d53a8
children 750db9ff8525
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):