Pi66

pino
Python notification daemon.
git clone https://git.pi66.xyz/pino

← back to log

set a local env

author: pixel2175
date: 2024-12-23 22:51
hash: c051aebfe9cbe03a0e0acc7ed4866fe91dd06530

Diffstat:

M

src/pino.py
19 ++++++++++++++++++++++--------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/src/pino.py b/src/pino.py
index bcb994c..b76140e 100644
--- a/src/pino.py
+++ b/src/pino.py
@@ -23,17 +23,26 @@ FUTURE:
 - possiblity to add icon

 """
+from sys import path
+from os.path import exists, expanduser
+from os import getlogin, system
+
+
+libs_path = "/etc/pino/lib/lib/python3.13/site-packages"
+if exists(libs_path):
+    path.insert(0,str(libs_path))
+else:
+    print("[*]- libs didn't found !!")
+
+from json import load

+from argparse import ArgumentParser
 from customtkinter.windows.widgets import CTkFrame, CTkLabel
 from customtkinter.windows.ctk_tk import CTk
 from customtkinter.windows.ctk_input_dialog import CTkFont
 from screeninfo.screeninfo import get_monitors
-from json import load
-from os.path import exists, expanduser
-from os import getlogin, system
-from argparse import ArgumentParser
 # from threading import Thread
-# from playsound import playsound
+# from pygame.mixer import Sound


 parsers = ArgumentParser(