From 4241d3a4e807ab60738878cf7048a5807a88f47c Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Mon, 26 May 2025 12:11:24 -0700 Subject: [PATCH] autopep --- mfbatch/commands.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mfbatch/commands.py b/mfbatch/commands.py index fd5db9c..605efff 100644 --- a/mfbatch/commands.py +++ b/mfbatch/commands.py @@ -114,7 +114,7 @@ class CommandEnv: del self.metadatums['_ABSPATH'] del self.metadatums['_FILENAME'] del self.metadatums['_FOLDER'] - + if '_NEW_BASENAME' in self.metadatums: del self.metadatums['_NEW_BASENAME'] @@ -198,7 +198,7 @@ they appear in the batchfile. def _write_metadata_and_rename_impl(self, line): if self.dry_run: print("DRY RUN would write metadata here.", file=self.outstream) - + if '_NEW_BASENAME' in self.env.metadatums: self.outstream.write('DRY RUN would rename file here.\n') else: @@ -210,7 +210,7 @@ they appear in the batchfile. self.outstream.write("Attempting to rename... ") full_old_path = os.path.abspath(line) new_name = os.path.join(os.path.dirname(full_old_path), - self.env.metadatums['_NEW_BASENAME']) + self.env.metadatums['_NEW_BASENAME']) if not os.path.exists(new_name): os.rename(line, new_name) @@ -366,7 +366,6 @@ they appear in the batchfile. val = args[0] self.env.set_once('DESCRIPTION', val) - # def picture(self, args): # """ # picture PATH