|
@ -3,7 +3,7 @@ |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
|
import os |
|
|
import os |
|
|
import pygount |
|
|
|
|
|
|
|
|
from pygount import SourceAnalysis |
|
|
from pathlib import Path |
|
|
from pathlib import Path |
|
|
import logging |
|
|
import logging |
|
|
|
|
|
|
|
@ -145,7 +145,7 @@ class IrModuleModule(models.Model): |
|
|
exclude_files) |
|
|
exclude_files) |
|
|
|
|
|
|
|
|
for file_path, file_ext in file_list: |
|
|
for file_path, file_ext in file_list: |
|
|
file_res = pygount.source_analysis( |
|
|
|
|
|
|
|
|
file_res = SourceAnalysis.from_file( |
|
|
file_path, '', |
|
|
file_path, '', |
|
|
encoding=self._get_module_encoding(file_ext)) |
|
|
encoding=self._get_module_encoding(file_ext)) |
|
|
for k, v in analysed_datas.get(file_ext).items(): |
|
|
for k, v in analysed_datas.get(file_ext).items(): |
|
|