From e0acbb2a46f653b2fd507f59613f350b71d9d2e4 Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Mon, 8 Jan 2024 15:53:34 +0800 Subject: [PATCH] fix(resources): fix resource schema path --- instill/resources/const.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instill/resources/const.py b/instill/resources/const.py index 34d92f4..62af1dc 100644 --- a/instill/resources/const.py +++ b/instill/resources/const.py @@ -1,3 +1,5 @@ +import os + INSTILL_MODEL_INTERNAL_MODEL = "Internal Mode" INSTILL_MODEL_EXTERNAL_MODEL = "External Mode" -SPEC_PATH = "instill/resources/schema/jsons" +SPEC_PATH = f"{os.path.dirname(__file__)}/schema/jsons"