File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
services/director/src/simcore_service_director Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22from pathlib import Path
33
44import pkg_resources
5- from simcore_service_director import config
65
6+ from .constants import NODE_SCHEMA_LOCATION
77
88RESOURCE_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
2727
2828
2929def 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
You can’t perform that action at this time.
0 commit comments