fix-scan-view-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 1 Apr 2020 15:23:55 +0000 (16:23 +0100)
committerJessica Clarke <jrtc27@debian.org>
Wed, 1 Apr 2020 15:23:55 +0000 (16:23 +0100)
===================================================================

Gbp-Pq: Name fix-scan-view-path.diff

clang/tools/scan-view/bin/scan-view

index 90f97a92e9a2a635b19dc6a3714a333f544bb0ea..4537bcfcd01d14231c7dfd2fcbd713e53b13fc47 100755 (executable)
@@ -28,6 +28,7 @@ kDefaultPort = 8181
 kMaxPortsToTry = 100
 
 ###
+BASE_DIR = '/usr/share/clang/scan-view-9'
 
 
 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"