Skip to content

Commit

Permalink
minor: passing str to sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaJack committed Mar 21, 2024
1 parent 645ac57 commit 0674cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
# load local module rather than system installed version
import sys

project_root = str(Path(__file__).resolve().parent.parent)
sys.path.insert(0, project_root)
project_root = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(project_root))

# module to test
from toc.cli import main
Expand Down
4 changes: 2 additions & 2 deletions tests/test_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# load local module rather than system installed version
import sys

project_root = str(Path(__file__).resolve().parent.parent)
sys.path.insert(0, project_root)
project_root = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(project_root))

# module to test
from toc.toc import Toc
Expand Down

0 comments on commit 0674cd6

Please sign in to comment.