Commit 6939099a7745a7801e340bb37aefedd3fc5c977d

Authored by Antoine Goutenoir
1 parent 63a27a99
Exists in master

fix: use a qualified path in local imports

This is a stepping stone towards python 3 support,
that we need to fix the geocoder.
Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
flaskr/geocoder.py
... ... @@ -2,7 +2,7 @@ import geopy
2 2 import shelve
3 3 import time
4 4  
5   -from core import get_path
  5 +from flaskr.core import get_path
6 6  
7 7  
8 8 class CachedGeocoder:
... ...
flaskr/models.py
... ... @@ -8,7 +8,7 @@ from flask_sqlalchemy import SQLAlchemy
8 8 from werkzeug.security import generate_password_hash, check_password_hash
9 9 from yaml import safe_load as yaml_load
10 10  
11   -from content import get_path, base_url
  11 +from flaskr.content import get_path, base_url
12 12 from flaskr.core import generate_unique_id, models
13 13  
14 14 # These are not the emission "models" in the scientific meaning of the word.
... ...