Commit 2b4cf2a18debeab4149bfbf0144c8428660fbe59

Authored by Antoine Goutenoir
1 parent 0d18ee31
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,7 +2,7 @@ import geopy
2 import shelve 2 import shelve
3 import time 3 import time
4 4
5 -from core import get_path 5 +from flaskr.core import get_path
6 6
7 7
8 class CachedGeocoder: 8 class CachedGeocoder:
flaskr/models.py
@@ -8,7 +8,7 @@ from flask_sqlalchemy import SQLAlchemy @@ -8,7 +8,7 @@ from flask_sqlalchemy import SQLAlchemy
8 from werkzeug.security import generate_password_hash, check_password_hash 8 from werkzeug.security import generate_password_hash, check_password_hash
9 from yaml import safe_load as yaml_load 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 from flaskr.core import generate_unique_id, models 12 from flaskr.core import generate_unique_id, models
13 13
14 # These are not the emission "models" in the scientific meaning of the word. 14 # These are not the emission "models" in the scientific meaning of the word.