From def88e98e6ea35286a6c445af4b6126bd2732d2d Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Thu, 11 Jan 2024 14:15:09 +0100 Subject: [PATCH] fix-scan-view-path =================================================================== Gbp-Pq: Name fix-scan-view-path.diff --- clang/tools/scan-view/bin/scan-view | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/tools/scan-view/bin/scan-view b/clang/tools/scan-view/bin/scan-view index 61f7ff4122..3c4ec3166e 100755 --- a/clang/tools/scan-view/bin/scan-view +++ b/clang/tools/scan-view/bin/scan-view @@ -27,6 +27,7 @@ kDefaultPort = 8181 kMaxPortsToTry = 100 ### +BASE_DIR = '/usr/share/clang/scan-view-17' def url_is_up(url): @@ -64,7 +65,7 @@ def start_browser(port, options): def run(port, options, root): # Prefer to look relative to the installed binary - share = os.path.dirname(__file__) + "/../share/" + share = os.path.join(BASE_DIR, 'share') if not os.path.isdir(share): # Otherwise look relative to the source share = os.path.dirname(__file__) + "/../../scan-view/share" -- 2.30.2