Skip to content

Commit 72c0ff3

Browse files
Fix output file path in Application class to use self.save_file directly, resolving directory path issues for batch processing.
1 parent 9a93c33 commit 72c0ff3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spatialmedia/gui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ def action_inject_delay(self):
151151
extension = split_filename[1]
152152

153153
# Create output filename for each file
154+
# Fix: Use self.save_file directly as it's already the correct directory path
154155
output_file = os.path.join(
155-
os.path.dirname(self.save_file),
156+
#os.path.dirname(self.save_file), # Remove os.path.dirname() call to fix directory path issue
157+
self.save_file, # Remove os.path.dirname() call
156158
f"{base_filename}_injected{extension}"
157159
)
158160

0 commit comments

Comments
 (0)