Skip to content

Commit 27c2de4

Browse files
committed
9pm: use 9pm root as base for project root
Signed-off-by: Richard Alpe <[email protected]>
1 parent 2823a24 commit 27c2de4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

9pm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def write_report_project_info(file, config):
363363
return None
364364

365365
name = config['PROJECT-NAME']
366-
root = config['PROJECT-ROOT']
366+
root = os.path.join(ROOT_PATH, config['PROJECT-ROOT'])
367367
version = run_git_cmd(root, ["describe", "--tags", "--always"])
368368
sha = run_git_cmd(root, ['rev-parse', 'HEAD'])[:12]
369369

@@ -714,7 +714,7 @@ def main():
714714
if 'PROJECT-NAME' in proj:
715715
str = f"\nTesting {proj['PROJECT-NAME']}"
716716
if 'PROJECT-ROOT' in proj:
717-
str += f" ({run_git_cmd(proj['PROJECT-ROOT'], ['rev-parse', 'HEAD'])[:12]})"
717+
str += f" ({run_git_cmd(os.path.join(ROOT_PATH, proj['PROJECT-ROOT']), ['rev-parse', 'HEAD'])[:12]})"
718718
cprint(pcolor.yellow, str)
719719

720720
cmdl = {'name': 'command-line', 'suite': []}

0 commit comments

Comments
 (0)