Add better background setting scripts

This commit is contained in:
Colin Powell
2020-01-30 15:07:35 -05:00
parent 484d4d3e88
commit d764aca0cd
3 changed files with 43 additions and 34 deletions

View File

@ -1,11 +1,13 @@
#!/usr/bin/env python3
import os
from datetime import datetime
import requests
import subprocess
from datetime import datetime
import requests
today = datetime.today().strftime("%Y-%m-%d")
target_path = f"/home/powellc/var/inbox/astrobin/{today}.jpg"
home = os.path.expanduser("~")
target_path = f"{home}/var/backgrounds/astrobin/{today}.jpg"
# If the file for today already exists, just exit
if os.path.isfile(target_path):