equal
deleted
inserted
replaced
10 prev_sys_path = list(sys.path) |
10 prev_sys_path = list(sys.path) |
11 |
11 |
12 sys.path.append(environ['PROJECT_PATH']) |
12 sys.path.append(environ['PROJECT_PATH']) |
13 for path in environ.get('PYTHON_PATH',"").split(os.pathsep): |
13 for path in environ.get('PYTHON_PATH',"").split(os.pathsep): |
14 if path: |
14 if path: |
15 site.addsitedir(path) |
15 site.addsitedir(path) # @UndefinedVariable |
16 |
16 |
17 new_sys_path = [] |
17 new_sys_path = [] |
18 for item in list(sys.path): |
18 for item in list(sys.path): |
19 if item not in prev_sys_path and item not in new_sys_path: |
19 if item not in prev_sys_path and item not in new_sys_path: |
20 new_sys_path.append(item) |
20 new_sys_path.append(item) |