Commit 7db600f7e954d01323e9bda8ed2d7d596729b523

Thomas de Grivel 2023-02-26T12:26:54

status_img

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index ffc6bcb..12349f5 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -393,7 +393,7 @@ EOF
   end
 
   def self.status_img(status)
-    path = "#{File.dirname(File.dirname(__FILE__))}/share/icon/64x64/status_#{status}.png"
+    path = "#{Rbpkg.dir}/share/icon/64x64/status_#{status}.png"
     file = File.read(path)
     base64 = Base64.encode64(file)
     "data:image/png;base64,#{base64}"