fix encoding
This commit is contained in:
@@ -51,7 +51,7 @@ class ProjectMap:
|
||||
Сохраняет карту структуры в файл.
|
||||
"""
|
||||
map_content = self.generate_map()
|
||||
with open(output_file, "w") as f:
|
||||
with open(output_file, "w", encoding="utf-8") as f:
|
||||
f.write(map_content)
|
||||
log(f"Project map saved to {output_file}")
|
||||
|
||||
@@ -62,7 +62,7 @@ class ProjectMap:
|
||||
gitignore_path = os.path.join(self.project_path, ".gitignore")
|
||||
rules = []
|
||||
if os.path.exists(gitignore_path):
|
||||
with open(gitignore_path, "r") as f:
|
||||
with open(gitignore_path, "r", encoding="utf-8") as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
if line and not line.startswith("#"): # Игнорируем комментарии и пустые строки
|
||||
|
||||
Reference in New Issue
Block a user