From 745e9e99b48808aba45bb6adb65363b28effd62d Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sat, 27 Jun 2026 22:52:45 -0500 Subject: [PATCH] WIP csv script --- bin/clerk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 bin/clerk diff --git a/bin/clerk b/bin/clerk new file mode 100755 index 0000000..0fa3bb4 --- /dev/null +++ b/bin/clerk @@ -0,0 +1,20 @@ +#!/usr/bin/python + +import os + +DATA_DIR=os.path.expanduser('~/Journal/2026/data') + +data_files = {} +os.path.expanduser('~/Journal/2026/data') +for root, _, files in os.walk(DATA_DIR): + for file in files: + name, ext = os.path.splitext(file) + if ext == '.csv': + data_files[name] = os.path.join(root, file) + +print(data_files.keys()) +choice = input() + +file = data_files[choice] + +print(file) -- 2.47.3