Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@ def open_folder_in_explorer(path):
else: # Linux
subprocess.call(['xdg-open', path])
except Exception as e:
messagebox.showerror("エラー", f"フォルダを開けませんでした。\n{e}")

messagebox.showerror("エラー", f"フォルダを開けませんでした。\n{e}")

# === FOR SECURITY SCAN TEST (DO NOT USE) ===
import subprocess

def security_test_function(user_input):
# Bandit should detect this as a high-risk issue (shell=True)
# This line will cause the CI to fail with the new settings.
subprocess.run(f"echo {user_input}", shell=True)
# === END OF TEST CODE ===
Loading