Skip to content

Commit

Permalink
Update python script to close Terminal only when pressed Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
anddea committed Mar 23, 2024
1 parent 25ce0a9 commit fe8b0c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions search_for_missing_strings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import re
import sys

# Define source file path
source_file = "src/main/resources/youtube/settings/host/values/strings.xml"
Expand Down Expand Up @@ -75,3 +76,7 @@ def extract_strings(file_path):

num_missing = len(missing_strings)
print(f"{language_code} - {num_missing} missing strings.")

# Prompt the user to press a key before closing the terminal window
input("\nPress Enter to exit...")
sys.exit(0) # Optional, but ensures proper termination of the script

0 comments on commit fe8b0c0

Please sign in to comment.