From e0f2a3358831add3cb409d298185fdc0e6915b59 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 16 Oct 2023 13:14:10 +0000 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 90f97a92e9..b7ec9f3843 100755 --- a/clang/tools/scan-view/bin/scan-view +++ b/clang/tools/scan-view/bin/scan-view @@ -28,6 +28,7 @@ kDefaultPort = 8181 kMaxPortsToTry = 100 ### +BASE_DIR = '/usr/share/clang/scan-view-16' def url_is_up(url): @@ -65,7 +66,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