fix-scan-view-path
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 1 Jan 2023 14:42:15 +0000 (14:42 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Jan 2023 14:42:15 +0000 (14:42 +0000)
===================================================================

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

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

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