Skip to content

Commit 41b99e0

Browse files
Merge pull request #2 from Jaseci-Labs/dev
fixed script saving location
2 parents c582081 + 16541cf commit 41b99e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jackernel/kernel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def exec_jac(code: str) -> str:
3636
f.write(code)
3737

3838
try:
39-
jac_import(op.join(tmpdir, "temp"))
39+
jac_import(target=op.join(tmpdir, "temp"), base_path=tmpdir)
4040
# Import the jac file, this generates the __jac_gen__ folder at the same level as the jac file,
4141
# This folder contains the python file that we want to execute.
4242
script_path = op.join(tmpdir, "__jac_gen__/temp.py")
@@ -59,6 +59,8 @@ def exec_jac(code: str) -> str:
5959
finally:
6060
pass
6161

62+
return captured_output
63+
6264

6365
class JacKernel(Kernel):
6466
"""Jac wrapper kernel."""

0 commit comments

Comments
 (0)