Skip to content

Commit

Permalink
Remove does_command_exist function
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Karasu committed Jun 7, 2024
1 parent e7ba3de commit 25d4479
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions auto_cpufreq/power_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
from auto_cpufreq.init_system import INIT_SYSTEM, ServiceCommand
from auto_cpufreq.prints import print_error, print_info, print_warning, print_warning_block

# used to check if binary exists on the system
def does_command_exists(cmd): return which(cmd) is not None

bluetooth_conf_file = '/etc/bluetooth/main.conf'
powerprofilesctl_exists = does_command_exists('powerprofilesctl')
powerprofilesctl_exists = which('powerprofilesctl') is not None

# stops gnome >= 40 power profiles (live)
def gnome_power_stop_live():
Expand Down

0 comments on commit 25d4479

Please sign in to comment.