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

package info (click to toggle)
scalene 1.5.54-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,980 kB
  • sloc: cpp: 22,870; python: 14,493; javascript: 12,297; ansic: 817; makefile: 196; sh: 45
file content (23 lines) | stat: -rw-r--r-- 900 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(-)

diff --git a/scalene/scalene_profiler.py b/scalene/scalene_profiler.py
index 3f5fe14..bc53e6a 100644
--- a/scalene/scalene_profiler.py
+++ b/scalene/scalene_profiler.py
@@ -618,7 +618,7 @@ class Scalene:
         Scalene.__signal_manager.get_signals().set_timer_signals(
             Scalene.__args.use_virtual_time
         )
-        Scalene.__profiler_base = str(os.path.dirname(__file__))
+        Scalene.__profiler_base = "/usr/share/python3-scalene"
         if Scalene.__args.pid:
             # Child process.
             # We need to use the same directory as the parent.