Skip to content
Myr

Merge pull request #327 from SimonSapin/patch-2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add to sys.path, not sys.path_info

authored by Ron DuPlain · committed by Ron DuPlain · parents 56afafa, b8ef736 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/testsuite/__init__.py+1 added-1 removed
22 unmodified lines
23from werkzeug.utils import import_string, find_modules242526def add_to_path(path):27 """Adds an entry to sys.path_info if it's not already there. This does27 """Adds an entry to sys.path if it's not already there. This does28 not append it but moves it to the front so that we can be sure it29 is loaded.30 """31 if not os.path.isdir(path):
190 unmodified lines