Skip to content

Commit

Permalink
convert Path to string for prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Sep 7, 2023
1 parent 2dacb6a commit 3f0c46c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 1.0.8

- Fixed `bactopia-prepare` usage of `--prefix` not working

## 1.0.7

- Fixed `bactopia-search` not including header name in accessions.txt
Expand Down
2 changes: 1 addition & 1 deletion bactopia/cli/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def search_path(path, pattern, recursive=False):
def get_path(fastq, abspath, prefix):
fastq_path = str(fastq.absolute())
if prefix:
return fastq_path.replace(abspath, prefix).replace("///", "//")
return fastq_path.replace(str(abspath), prefix).replace("///", "//")
return fastq_path


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bactopia"
version = "1.0.7"
version = "1.0.8"
description = "A Python package for working with Bactopia"
authors = [
"Robert A. Petit III <robbie.petit@gmail.com>",
Expand Down

0 comments on commit 3f0c46c

Please sign in to comment.