Use a private copy of the bypy scripts so it doesnt conflict with the developments for the qt6 branch

This commit is contained in:
Kovid Goyal 2021-12-10 14:26:17 +05:30
parent 8169268ee3
commit ef87339298
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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(