issue 873, thanks Howesc
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-01 22:43:58) dev
|
Version 2.00.0 (2012-07-04 17:02:32) dev
|
||||||
|
|||||||
+5
-2
@@ -7,7 +7,6 @@ Utility functions for the Admin application
|
|||||||
===========================================
|
===========================================
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import site
|
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import zipfile
|
import zipfile
|
||||||
@@ -20,6 +19,9 @@ from fileutils import read_file, write_file, parse_version
|
|||||||
from restricted import RestrictedError
|
from restricted import RestrictedError
|
||||||
from settings import global_settings
|
from settings import global_settings
|
||||||
|
|
||||||
|
if not global_settings.web2py_runtime_gae:
|
||||||
|
import site
|
||||||
|
|
||||||
def apath(path='', r=None):
|
def apath(path='', r=None):
|
||||||
"""
|
"""
|
||||||
Builds a path inside an application folder
|
Builds a path inside an application folder
|
||||||
@@ -435,7 +437,8 @@ def upgrade(request, url='http://web2py.com'):
|
|||||||
|
|
||||||
def add_path_first(path):
|
def add_path_first(path):
|
||||||
sys.path = [path]+[p for p in sys.path if (not p==path and not p==(path+'/'))]
|
sys.path = [path]+[p for p in sys.path if (not p==path and not p==(path+'/'))]
|
||||||
site.addsitedir(path)
|
if not global_settings.web2py_runtime_gae:
|
||||||
|
site.addsitedir(path)
|
||||||
|
|
||||||
def create_missing_folders():
|
def create_missing_folders():
|
||||||
if not global_settings.web2py_runtime_gae:
|
if not global_settings.web2py_runtime_gae:
|
||||||
|
|||||||
Reference in New Issue
Block a user