X-Git-Url: http://unremediatedgender.space/source?a=blobdiff_plain;ds=inline;f=notes%2Fmemoir_wordcounts.py;h=19b2870923ecf2cb03277a780a09176c86520c9f;hb=15ef16306310e34dd3700b0ac5449333684a5d37;hp=ed4c43e86adebaf3b00e5aed5c3d6a8a94059f4d;hpb=29efb7e7f3e379ff3791d0e9c4b0bf5d4c72e0ce;p=Ultimately_Untrue_Thought.git diff --git a/notes/memoir_wordcounts.py b/notes/memoir_wordcounts.py index ed4c43e..19b2870 100755 --- a/notes/memoir_wordcounts.py +++ b/notes/memoir_wordcounts.py @@ -21,7 +21,7 @@ MONTHS = { } def wordcount_at_this_sha(): - result = subprocess.run("wc -w content/drafts/blanchards-dangerous-idea-and-the-plight-of-the-lucid-crossdreamer.md content/drafts/a-hill-of-validity-in-defense-of-meaning.md content/drafts/if-clarity-seems-like-death-to-them.md content/drafts/agreeing-with-stalin-in-ways-that-exhibit-generally-rationalist-principles.md content/drafts/zevis-choice.md content/drafts/standing-under-the-same-sky.md".split(), stdout=subprocess.PIPE) + result = subprocess.run("wc -w content/drafts/blanchards-dangerous-idea-and-the-plight-of-the-lucid-crossdreamer.md content/drafts/people-evolved-social-control-mechanisms-and-rocks.md content/drafts/a-hill-of-validity-in-defense-of-meaning.md content/drafts/if-clarity-seems-like-death-to-them.md content/drafts/agreeing-with-stalin-in-ways-that-exhibit-generally-rationalist-principles.md content/drafts/zevis-choice.md content/drafts/standing-under-the-same-sky.md".split(), stdout=subprocess.PIPE) wc_lines = result.stdout.decode('utf8').split('\n') total_line = wc_lines[-2] # last line is empty return int(total_line.split()[0])