From: Scott Worley Date: Wed, 1 Oct 2025 01:28:46 +0000 (-0700) Subject: Put output in a subdirectory X-Git-Url: http://git.scottworley.com/srec/commitdiff_plain/23e8dc7fac93a8c8d2ce9e66697085e1ca431c9c?ds=inline Put output in a subdirectory --- diff --git a/srec.py b/srec.py index d0a0392..4abe581 100644 --- a/srec.py +++ b/srec.py @@ -27,7 +27,7 @@ recording: Recording | None = None def make_filename() -> str: directory = os.environ.get( 'XDG_VIDEOS_DIR', - os.path.expanduser('~/Videos')) + os.path.expanduser('~/Videos/SRec')) os.makedirs(directory, exist_ok=True) timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S') return os.path.join(directory, f'srec {timestamp}.mkv')