diff --git a/Makefile b/Makefile index dcba7d2e8..1e888ee35 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ clean: python setup.py clean - rm PIL/*.so || true + rm src/PIL/*.so || true rm -r build || true find . -name __pycache__ | xargs rm -r || true diff --git a/Tests/import_all.py b/Tests/import_all.py index c5960d8bb..11682237b 100644 --- a/Tests/import_all.py +++ b/Tests/import_all.py @@ -7,7 +7,7 @@ import traceback import sys sys.path.insert(0, ".") -for file in glob.glob("PIL/*.py"): +for file in glob.glob("src/PIL/*.py"): module = os.path.basename(file)[:-3] try: exec("from PIL import " + module)