mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +02:00
Fix unsafe access to PATH
This commit is contained in:
parent
a14d06ce94
commit
40e4957c46
@ -22,7 +22,7 @@ from auto_cpufreq.power_helper import *
|
||||
filterwarnings("ignore")
|
||||
|
||||
# add path to auto-cpufreq executables for GUI
|
||||
os.environ["PATH"] += ":/usr/local/bin"
|
||||
os.environ["PATH"] = os.environ.get("PATH", "") + os.pathsep + "/usr/local/bin"
|
||||
|
||||
# ToDo:
|
||||
# - replace get system/CPU load from: psutil.getloadavg() | available in 5.6.2)
|
||||
@ -896,4 +896,4 @@ def not_running_daemon_check():
|
||||
exit(1)
|
||||
elif IS_INSTALLED_WITH_SNAP and dcheck == "disabled":
|
||||
daemon_not_running_msg()
|
||||
exit(1)
|
||||
exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user