From c0e0e45685cf9cff209017128752bdbaed3a6f1a Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Wed, 14 Oct 2020 09:49:59 +0200 Subject: [PATCH] dash-separated-format.py update. --- tools/dash-separated-format.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/dash-separated-format.py b/tools/dash-separated-format.py index 9aed02136..d0343fb1d 100755 --- a/tools/dash-separated-format.py +++ b/tools/dash-separated-format.py @@ -3,9 +3,7 @@ import pathlib import subprocess for filename in pathlib.Path('.').glob('**/*.md'): - # f = open(filename) - print('file: %s' % filename) new_filename = str(filename).lower().replace(' ', '-') - command = ['git', 'mv', filename, new_filename] + command = ['git', 'mv', str(filename), new_filename] print('would run: %s' % command) # subprocess.run(command)