Added files helper

This commit is contained in:
Zvonimir Sabljic
2023-08-02 16:04:18 +02:00
parent 0a19f2f54f
commit 6cf8de709c

7
euclid/helpers/files.py Normal file
View File

@@ -0,0 +1,7 @@
from termcolor import colored
def update_file(path, new_content):
with open(path, 'w') as file:
file.write(new_content)
print(colored(f"Updated file {path}", "green"))