From: Tim Orling <[email protected]>

toastermain: try Path(os.environ.get('BUILDDIR')

Developer: Tim Orling
Reviewer: Alassane Yattara

Signed-off-by: Tim Orling <[email protected]>
Signed-off-by: Alassane Yattara <[email protected]>

---
 bitbake/lib/toaster/toastermain/logs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/toastermain/logs.py 
b/bitbake/lib/toaster/toastermain/logs.py
index db5d459f9b..573fbef9e5 100644
--- a/bitbake/lib/toaster/toastermain/logs.py
+++ b/bitbake/lib/toaster/toastermain/logs.py
@@ -8,7 +8,7 @@ from pathlib import Path
 from django.http import HttpRequest
 
 #BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
-BUILDDIR = os.environ.get("BUILDDIR")
+BUILDDIR = Path(os.environ.get('BUILDDIR'))
 
 
 def log_api_request(request, response, view, logger_name='api'):
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5893): https://lists.yoctoproject.org/g/toaster/message/5893
Mute This Topic: https://lists.yoctoproject.org/mt/102200454/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to