Skip to content

Commit 158e892

Browse files
comment: Ensure base_path is a list in JacMachine initialization
1 parent a3c4e75 commit 158e892

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jac/jaclang/runtimelib/machine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(self, base_path: str = "") -> None:
3838
self.loaded_modules: dict[str, types.ModuleType] = {}
3939
if not base_path:
4040
base_path = os.getcwd()
41+
# Ensure the base_path is a list rather than a string
4142
self.base_path = base_path
4243
self.base_path_dir = (
4344
os.path.dirname(base_path)

0 commit comments

Comments
 (0)