Skip to content

Commit d42b4fc

Browse files
committed
add Path function
1 parent 97a6121 commit d42b4fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from packaging.requirements import Requirement
1111
from packaging.version import Version
1212

13-
from mlblocks.discovery import add_primitives_path, add_pipelines_path
13+
from mlblocks.discovery import add_primitives_path, add_pipelines_path, get_primitives_paths
1414

1515
def _get_minimum_versions(dependencies, python_version):
1616
min_versions = {}
@@ -71,7 +71,7 @@ def minimum(c):
7171

7272

7373
def add_paths():
74-
base_path = os.path.join(os.getcwd(), 'sigllm')
74+
base_path = Path(os.path.join(os.getcwd(), 'sigllm'))
7575
primitives_path = os.path.join(base_path, 'primitives', 'jsons')
7676
pipeline_paths = [
7777
os.path.join(base_path, 'pipelines', 'detector'),
@@ -85,6 +85,7 @@ def add_paths():
8585
@task
8686
def readme(c):
8787
add_paths()
88+
print(get_primitives_paths())
8889
test_path = Path('tests/readme_test')
8990
if test_path.exists() and test_path.is_dir():
9091
shutil.rmtree(test_path)

0 commit comments

Comments
 (0)