Skip to content

Commit bb7d88e

Browse files
committed
Remove dependency locate.
1 parent a501ffa commit bb7d88e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
locate==1.1.1

test/test_doctests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import doctest
22
import unittest
3+
from pathlib import Path
34
from typing import Any, List
45
from unittest import BaseTestSuite
56

6-
from locate import this_dir
7-
8-
repo_dir = this_dir().parent
7+
repo_dir = Path(__file__).resolve().parent.parent
98

109

1110
# noinspection PyUnusedLocal

test/test_examples.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
from tempfile import TemporaryDirectory
55
from typing import Generator
66

7-
from locate import this_dir
87
from mkdocs.commands.build import build
98
from mkdocs.config import load_config
109

11-
repo_dir = this_dir().parent
10+
repo_dir = Path(__file__).resolve().parent.parent
1211
examples_dir = repo_dir.joinpath("examples")
1312

1413

0 commit comments

Comments
 (0)