Skip to content

Commit c241ad7

Browse files
committed
temp
1 parent e239d07 commit c241ad7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

services/director/src/simcore_service_director/resources.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
from pathlib import Path
33

44
import pkg_resources
5-
from simcore_service_director import config
65

6+
from .constants import NODE_SCHEMA_LOCATION
77

88
RESOURCE_OPENAPI_ROOT: str = "api"
9-
RESOURCE_OPEN_API: str = f"{RESOURCE_OPENAPI_ROOT}/{config.API_VERSION}/openapi.yaml"
10-
RESOURCE_NODE_SCHEMA: str = config.NODE_SCHEMA_LOCATION
9+
RESOURCE_OPEN_API: str = f"{RESOURCE_OPENAPI_ROOT}/v0/openapi.yaml"
10+
RESOURCE_NODE_SCHEMA: str = NODE_SCHEMA_LOCATION
1111

1212
"""
1313
List of pkg_resources functions *bound* to current package with the following signature
@@ -27,10 +27,10 @@
2727

2828

2929
def get_path(resource_name: str) -> Path:
30-
""" Returns a path to a resource
30+
"""Returns a path to a resource
3131
32-
WARNING: existence of file is not guaranteed. Use resources.exists
33-
WARNING: resource files are supposed to be used as read-only!
32+
WARNING: existence of file is not guaranteed. Use resources.exists
33+
WARNING: resource files are supposed to be used as read-only!
3434
"""
3535
resource_path = Path(pkg_resources.resource_filename(__name__, resource_name))
3636
return resource_path

0 commit comments

Comments
 (0)