From a979152e766488adfd816f0a34d2d12721c1856b Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sun, 16 Dec 2018 12:07:54 +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 5adaa81f1..fbe36c41a 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-7' 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