diff --git a/setup/installers.py b/setup/installers.py index 64ffa9faf1..d48d7f61a9 100644 --- a/setup/installers.py +++ b/setup/installers.py @@ -13,7 +13,9 @@ d = os.path.dirname def get_paths(): base = d(d(os.path.abspath(__file__))) - bypy = os.path.join(d(base), 'bypy') + traditional_bypy_location = os.path.join(d(base), 'bypy') + compat_bypy_location = os.path.join(base, 'bypy', 'b', 'bypy-old') + bypy = compat_bypy_location if os.path.exists(compat_bypy_location) else traditional_bypy_location bypy = os.environ.get('BYPY_LOCATION', bypy) if not os.path.isdir(bypy): raise SystemExit(