Add better background setting scripts
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user