sb: Find the top when a release

Closes #4777
This commit is contained in:
Chris Johns 2022-12-18 16:03:37 +11:00
parent 1116c5f85f
commit c665be18f6

View File

@ -94,6 +94,8 @@ _top_dir = None
def _top():
if _top_dir is None:
top = path.dirname(sys.argv[0])
if top.endswith('source-builder/sb'):
top = path.dirname(path.dirname(top))
else:
top = _top_dir
if len(top) == 0: