changed main

This commit is contained in:
bacon
2023-08-28 23:51:06 +03:00
parent bb07690e02
commit 64c326c12c

View File

@@ -51,7 +51,7 @@ def all_to_translate(_dir):
to_file: str = '' to_file: str = ''
for _file in _files: for _file in _files:
_strings = pars_file(_file) _strings = pars_file(_file)
if len(_strings) > 0: _file, to_file = '\n', _strings, '\n', len(_strings), '\n\n\n' if len(_strings) > 0: to_file = f'{_file}\n {_strings} \n {len(_strings)}\n\n\n'
with open('test.txt', 'w') as f: with open('test.txt', 'w') as f:
f.write(to_file) f.write(to_file)