mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-18 09:17:54 -07:00
GNOME dependable installation, structure and style improvements
Split utils in utils.py to a directory Moved ./gnome-shell_css/ to ./gnome-shell/.css/
This commit is contained in:
15
scripts/utils/remove_keywords.py
Normal file
15
scripts/utils/remove_keywords.py
Normal file
@@ -0,0 +1,15 @@
|
||||
def remove_keywords(file, *args):
|
||||
"""
|
||||
Remove keywords from a file
|
||||
:param file: file name
|
||||
:param args: keywords to remove
|
||||
"""
|
||||
|
||||
with open(file, "r") as read_file:
|
||||
content = read_file.read()
|
||||
|
||||
for arg in args:
|
||||
content = content.replace(arg, "")
|
||||
|
||||
with open(file, "w") as write_file:
|
||||
write_file.write(content)
|
Reference in New Issue
Block a user