Skip to content

Commit

Permalink
Make temp file hidden, in /tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Feb 26, 2025
1 parent 9ddea49 commit 7d11884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damnit/gui/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __init__(self, main_window, editor_code: str):
self.action = None
self.temp_file = NamedTemporaryFile(
mode='w+', encoding='utf-8', delete=False,
dir=main_window.context_dir, prefix='context-editing-', suffix='.py'
prefix='.damnit-context-editing-', suffix='.py'
)
with self.temp_file:
self.temp_file.write(editor_code)
Expand Down

0 comments on commit 7d11884

Please sign in to comment.