@motiadev/core 0.15.5-beta.174-384621 → 0.15.5-beta.174-831835
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,9 +24,9 @@ def get_can_access(config):
|
|
|
24
24
|
async def run_python_module(file_path: str, payload: dict) -> None:
|
|
25
25
|
try:
|
|
26
26
|
path = Path(file_path).resolve()
|
|
27
|
-
steps_dir = next((p for p in path.parents if p.name
|
|
27
|
+
steps_dir = next((p for p in path.parents if p.name == "steps"), None)
|
|
28
28
|
if steps_dir is None:
|
|
29
|
-
raise RuntimeError("Could not find '
|
|
29
|
+
raise RuntimeError("Could not find 'steps' directory in path")
|
|
30
30
|
|
|
31
31
|
project_root = steps_dir.parent
|
|
32
32
|
project_parent = project_root.parent
|
|
@@ -23,9 +23,9 @@ def sendMessage(text):
|
|
|
23
23
|
async def run_python_module(file_path: str) -> None:
|
|
24
24
|
try:
|
|
25
25
|
path = Path(file_path).resolve()
|
|
26
|
-
steps_dir = next((p for p in path.parents if p.name
|
|
26
|
+
steps_dir = next((p for p in path.parents if p.name == "steps"), None)
|
|
27
27
|
if steps_dir is None:
|
|
28
|
-
raise RuntimeError("Could not find '
|
|
28
|
+
raise RuntimeError("Could not find 'steps' directory in path")
|
|
29
29
|
|
|
30
30
|
project_root = steps_dir.parent
|
|
31
31
|
project_parent = project_root.parent
|
|
@@ -24,9 +24,9 @@ async def run_python_module(file_path: str, rpc: RpcSender, args: Dict) -> None:
|
|
|
24
24
|
"""Execute a Python module with the given arguments"""
|
|
25
25
|
try:
|
|
26
26
|
path = Path(file_path).resolve()
|
|
27
|
-
steps_dir = next((p for p in path.parents if p.name
|
|
27
|
+
steps_dir = next((p for p in path.parents if p.name == "steps"), None)
|
|
28
28
|
if steps_dir is None:
|
|
29
|
-
raise RuntimeError("Could not find '
|
|
29
|
+
raise RuntimeError("Could not find 'steps' directory in path")
|
|
30
30
|
|
|
31
31
|
project_root = steps_dir.parent
|
|
32
32
|
project_parent = project_root.parent
|