Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auto-selfcontrol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [[ $1 ]]; then
;;
# Install plist config
activate|install)
sudo /usr/bin/python $DIR/auto-selfcontrol.py --install --dir "$(dirname $CONFIG_FILE)"
sudo python3 $DIR/auto-selfcontrol.py --install --dir "$(dirname $CONFIG_FILE)"
exit 0
;;
-h|--help|help|*)
Expand Down
4 changes: 2 additions & 2 deletions auto-selfcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run_api_v2(config):
"""Start SelfControl (< 3.0) with custom parameters, depending on the weekday and the config"""

if check_if_running(Api.V2, config):
print "SelfControl is already running, exit"
print("SelfControl is already running, exit")
LOGGER.error(
"SelfControl is already running, ignore current execution of Auto-SelfControl.")
exit(2)
Expand Down Expand Up @@ -129,7 +129,7 @@ def run_api_v3(config, settings_dir):
"""Start SelfControl with custom parameters, depending on the weekday and the config"""

if check_if_running(Api.V3, config):
print "SelfControl is already running, exit"
print("SelfControl is already running, exit")
LOGGER.error(
"SelfControl is already running, ignore current execution of Auto-SelfControl.")
exit(2)
Expand Down