fix for building python 3 windows binaries

This commit is contained in:
Nico Zanferrari authored and GitHub committed 2019-03-03 22:26:46 +01:00
1 parent a828cb2124
commit c1e5571de8
1 file changed
+1
+1
View File
@@ -436,6 +436,7 @@ def add_path_first(path):
sys.path = [path] + [p for p in sys.path if ( sys.path = [path] + [p for p in sys.path if (
not p == path and not p == (path + '/'))] not p == path and not p == (path + '/'))]
if not global_settings.web2py_runtime_gae: if not global_settings.web2py_runtime_gae:
if not path in sys.path:
site.addsitedir(path) site.addsitedir(path)