fixed import problem with external dependencies, thanks Corne Dickens

This commit is contained in:
mdipierro
2012-06-28 09:54:22 -05:00
parent d1c41defb1
commit e2928706a6
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -7,6 +7,7 @@ Utility functions for the Admin application
===========================================
"""
import os
import site
import sys
import traceback
import zipfile
@@ -434,6 +435,7 @@ def upgrade(request, url='http://web2py.com'):
def add_path_first(path):
sys.path = [path]+[p for p in sys.path if (not p==path and not p==(path+'/'))]
site.addsitedir(path)
def create_missing_folders():
if not global_settings.web2py_runtime_gae: