From 38307ececb41ef532d75cf51807f8afa225f379c Mon Sep 17 00:00:00 2001 From: AngelByDay Date: Fri, 22 Feb 2019 12:24:51 -0500 Subject: [PATCH] Force namespace resolution of imports The current import for some local modules causes errors when those already exist in site-packages on the target system. Namely "import db" is ambiguous and may cause errors due to loading of the 'db' PyPI package instead of the module. --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index dfecd9f6..5dace7e6 100644 --- a/cps/web.py +++ b/cps/web.py @@ -40,7 +40,7 @@ import json import datetime from iso639 import languages as isoLanguages import re -import db +from cps import db import gdriveutils from redirect import redirect_back from cps import lm, babel, ub, config, get_locale, language_table, app