Update file main.py

This commit is contained in:
Slava
2023-08-28 20:09:02 +00:00
parent d9779baf2f
commit 0c631a4def

View File

@@ -50,7 +50,9 @@ def all_to_translate(_dir):
_files = scan_files(_dir)
for _file in _files:
_strings = pars_file(_file)
if len(_strings) > 0: print(_file, '\n', _strings, '\n', len(_strings), '\n\n\n')
if len(_strings) > 0: _file, to_file = '\n', _strings, '\n', len(_strings), '\n\n\n'
with open('test.txt', 'w') as f:
f.write(to_file)
if __name__ == '__main__':