From ec1934dcdd801af8785f3057d4ae45e9a86ce166 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 20 Jan 2020 09:26:04 +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 5adaa81f..676d78a6 100755 --- a/clang/tools/scan-view/bin/scan-view +++ b/clang/tools/scan-view/bin/scan-view @@ -23,6 +23,7 @@ kDefaultPort = 8181 kMaxPortsToTry = 100 ### +BASE_DIR = '/usr/share/clang/scan-view-6.0' def url_is_up(url): @@ -61,7 +62,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