diff --git a/src/adgroupsync/conf.py b/src/adgroupsync/conf.py index e9fa9b9..5c5c073 100644 --- a/src/adgroupsync/conf.py +++ b/src/adgroupsync/conf.py @@ -22,7 +22,7 @@ def create_config_file(dest: Path): def create_cron_job(cron_job: str, config_file: Path): # Check if the script exists and its executable - if not shutil.which("test1"): + if not shutil.which(__package__): print( f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'" )