File: 0005-Point-to-the-debianize-scalene-gui-path.patch

package info (click to toggle)
scalene 1.5.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,904 kB
  • sloc: cpp: 22,801; javascript: 10,556; python: 9,187; ansic: 811; makefile: 197; sh: 45
file content (23 lines) | stat: -rw-r--r-- 952 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Emmanuel Arias <eamanu@yaerobi.com>
Date: Mon, 6 Jun 2022 15:37:43 -0300
Subject: Point to the debianize scalene-gui path.

scalene-gui is installed in /usr/share/python3-scalene. This patch
update the path to scalene-gui.
---
 scalene/scalene_profiler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: scalene-0.7.5/scalene/scalene_profiler.py
===================================================================
--- scalene-0.7.5.orig/scalene/scalene_profiler.py	2022-12-23 23:06:02.998424503 -0300
+++ scalene-0.7.5/scalene/scalene_profiler.py	2022-12-23 23:06:57.335098837 -0300
@@ -1736,7 +1736,7 @@
             return
 
         # Load the GUI JavaScript file.
-        scalene_dir = os.path.dirname(__file__)
+        scalene_dir = "/usr/share/python3-scalene"
         gui_fname = os.path.join(scalene_dir, "scalene-gui", "scalene-gui.js")
         gui_file = pathlib.Path(gui_fname)
         gui_js = gui_file.read_text()