From 09926853b694fd498c41cc3617a0e4abfeeb2340 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sun, 7 Jul 2024 10:45:51 -0400 Subject: [PATCH] chore: Satisfy CI linting check --- ambuild2/frontend/v2_2/context_manager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ambuild2/frontend/v2_2/context_manager.py b/ambuild2/frontend/v2_2/context_manager.py index fccea4e..8d1a8b0 100644 --- a/ambuild2/frontend/v2_2/context_manager.py +++ b/ambuild2/frontend/v2_2/context_manager.py @@ -175,8 +175,13 @@ def computeScriptPaths(self, parent, target): else: sourceFolder = '' buildFolder = '' + + if os.path.isabs(target): + full_script_path = target + else: + full_script_path = os.path.join(sourceFolder, name) - return sourceFolder, buildFolder, target if os.path.isabs(target) else os.path.join(sourceFolder, name) + return sourceFolder, buildFolder, full_script_path def getLocalFolder(self, context): return context.buildFolder