]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add paths vars
authorEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 06:31:03 +0000 (01:31 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 07:03:29 +0000 (02:03 -0500)
files/pc/tasks.py

index a15202b315aaed8410efbdec09b9a356bb6ee6a0..e2f786ad5be13ce993c1803133df9bc65ad4f217 100644 (file)
@@ -15,6 +15,11 @@ expect_URLs = [
 'allowance'
 ]
 
+expect_PATHs = [
+'podcasts',
+]
+
+
 
 URLS = {}
 for url in expect_URLs:
@@ -24,6 +29,16 @@ for url in expect_URLs:
         raise ValueError(f'Missing expected {key} in environment.')
     URLS[url] = result
 
+
+PATHS = {}
+for path in expect_PATHs:
+    key = f'PATH_{path.upper()}'
+    result = os.environ.get(key)
+    if not result:
+        raise ValueError(f'Missing expected {key} in environment.')
+    PATHS[path] = result
+
+
 def browse(c, url):
     c.run(f"librefox {url}", asynchronous=True)
 
@@ -34,6 +49,7 @@ def code(c, path):
 
 def folder(c, path):
     c.run(f"nemo {path}")
+    c.run(f"dolphin {path}")
 
 @task
 def go(c, bookmark):
@@ -163,3 +179,7 @@ def get_drive_info(c):
     c.run('ls /dev/disk/by-label')
 
 
+@task
+def podcasts(c):
+    folder(c, PATHS['podcasts'])
+