Skip to content

Instantly share code, notes, and snippets.

@blacklight
Created September 20, 2022 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blacklight/07249412c17e77b5b6fa9d5979ec9251 to your computer and use it in GitHub Desktop.
Save blacklight/07249412c17e77b5b6fa9d5979ec9251 to your computer and use it in GitHub Desktop.
>>> import os
>>>
>>> # Move to the Platypush config directory
>>> path = os.path.join(os.path.expanduser('~'), '.config', 'platypush')
>>> os.chdir(path)
>>>
>>> # Import and run the cron function
>>> from scripts.music.discovery import refresh_discover_weekly_cron
>>> refresh_discover_weekly_cron()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment