Commit 76f97e33 authored by Anika Treffehn's avatar Anika Treffehn
Browse files

added absolute since resolve does not always work as desired

parent af59a12e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -387,7 +387,7 @@ def get_processing_chain(

def get_abs_path(rel_path):
    if rel_path is not None:
        abs_path = Path(rel_path).resolve()
        abs_path = Path(rel_path).resolve().absolute()
    else:
        abs_path = None
    return abs_path
+2 −2
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@ class TestConfig:
        self._yaml_dump = self._dump_yaml(cfg)

        # convert to Path
        self.input_path = Path(self.input_path).resolve()
        self.output_path = Path(self.output_path).resolve()
        self.input_path = Path(self.input_path).resolve().absolute()
        self.output_path = Path(self.output_path).resolve().absolute()

    def _parse_yaml(self, filename):
        """parse configuration file"""
+3 −3
Original line number Diff line number Diff line
@@ -106,12 +106,12 @@ def list_audio(path: str, select_list: list = None) -> list:
    if path.exists():
        if path.is_dir():
            audio_list = [
                f.resolve() for f in path.iterdir() if f.suffix in ALLOWED_INPUT_EXT
                f.resolve().absolute() for f in path.iterdir() if f.suffix in ALLOWED_INPUT_EXT
            ]
        else:
            ext = path.suffix
            if ext in ALLOWED_INPUT_EXT:
                audio_list.append(path.resolve())
                audio_list.append(path.resolve().absolute())

    # filter according to select list
    if select_list:
@@ -158,7 +158,7 @@ def find_binary(
    else:
        if logger:
            logger.debug(f"Found binary {bin}")
        return Path(bin).resolve()
        return Path(bin).resolve().absolute()


def get_devnull():