diff --git a/emerge/analyzer.py b/emerge/analyzer.py index d554d57..afc711f 100644 --- a/emerge/analyzer.py +++ b/emerge/analyzer.py @@ -8,7 +8,7 @@ import os import logging from typing import Any, List, Dict -from pathlib import Path, PosixPath +from pathlib import Path from datetime import datetime import coloredlogs diff --git a/emerge/languages/goparser.py b/emerge/languages/goparser.py index e150798..65a93df 100644 --- a/emerge/languages/goparser.py +++ b/emerge/languages/goparser.py @@ -9,7 +9,7 @@ from enum import Enum, unique import logging import re -from pathlib import PosixPath +from pathlib import Path import pyparsing as pp @@ -91,7 +91,7 @@ def generate_file_result_from_analysis(self, analysis, *, file_name: str, full_f scanned_tokens = self.preprocess_file_content_and_generate_token_list_by_mapping(file_content, self._token_mappings) # make sure to create unique names by using the relative analysis path as a base for the result - parent_analysis_source_path = f"{PosixPath(analysis.source_directory).parent}/" + parent_analysis_source_path = f"{Path(analysis.source_directory).parent}/" relative_file_path_to_analysis = full_file_path.replace(parent_analysis_source_path, "") preprocessed_source = self.preprocess_golang_source(scanned_tokens)