Skip to content

Commit

Permalink
🐛 use PureWindowsPath in all cases
Browse files Browse the repository at this point in the history
- maps both Posix and Windows path correctly: https://stackoverflow.com/a/73682980
  • Loading branch information
Henry Webel committed May 19, 2024
1 parent 64e6e1b commit 0e3a3a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proteobench/io/params/fragger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import re
from collections import namedtuple
from io import BytesIO
from pathlib import Path
from pathlib import PureWindowsPath

import pandas as pd

Expand Down Expand Up @@ -79,7 +79,7 @@ def extract_params(file: BytesIO) -> ProteoBenchParameters:
params.search_engine = "MSFragger"

msfragger_executable = fragpipe_params.loc["fragpipe-config.bin-msfragger"]
msfragger_executable = Path(msfragger_executable).name
msfragger_executable = PureWindowsPath(msfragger_executable).name
match = re.search(VERSION_NO_PATTERN, msfragger_executable)

if match:
Expand Down

0 comments on commit 0e3a3a0

Please sign in to comment.