fixed importing of local packages first (I hope)
This commit is contained in:
1 parent
0c0830c1df
commit
5ab85ee20e
2 files changed
+5
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.4.1-alpha.2+timestamp.2013.02.06.10.31.19
|
Version 2.4.1-alpha.2+timestamp.2013.02.06.11.34.01
|
||||||
@@ -61,6 +61,10 @@ def custom_importer(name, globals=None, locals=None, fromlist=None, level=-1):
|
|||||||
and isinstance(globals, dict):
|
and isinstance(globals, dict):
|
||||||
import_tb = None
|
import_tb = None
|
||||||
try:
|
try:
|
||||||
|
try:
|
||||||
|
oname = name if not name.startswith('.') else '.'+name
|
||||||
|
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
|
||||||
|
except ImportError:
|
||||||
items = current.request.folder.split(os.path.sep)
|
items = current.request.folder.split(os.path.sep)
|
||||||
if not items[-1]:
|
if not items[-1]:
|
||||||
items = items[:-1]
|
items = items[:-1]
|
||||||
|
|||||||
Reference in new issue
Block a user