We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5819213 commit f41821eCopy full SHA for f41821e
src/penguin/utils.py
@@ -435,8 +435,15 @@ def get_kernel(conf: dict, proj_dir: str) -> str:
435
"""
436
kernel = conf["core"].get("kernel", None)
437
if kernel:
438
+ # Check if the kernel exists as an absolute path or relative to current execution dir
439
if os.path.exists(kernel) and os.path.isfile(kernel):
440
return kernel
441
+
442
+ # Check if the kernel exists relative to the project directory
443
+ proj_kernel = os.path.join(proj_dir, kernel)
444
+ if os.path.exists(proj_kernel) and os.path.isfile(proj_kernel):
445
+ return proj_kernel
446
447
from penguin.q_config import load_q_config
448
from glob import glob
449
q_config = load_q_config(conf)
0 commit comments