Skip to content

Commit 8ac37b5

Browse files
authored
fix is_pythoncall check
1 parent 15c858b commit 8ac37b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpython/context.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function init_context()
2727
# This is the project in which we manage Python dependences.
2828
for env in Base.load_path()
2929
proj = Base.env_project_file(env)
30-
is_pythoncall = Base.project_file_name_uuid(proj, "").uuid == PYTHONCALL_UUID
30+
is_pythoncall = proj isa String && Base.project_file_name_uuid(proj, "").uuid == PYTHONCALL_UUID
3131
depends_on_pythoncall = Base.manifest_uuid_path(env, PYTHONCALL_PKGID) !== nothing
3232
if is_pythoncall || depends_on_pythoncall
3333
jlenv = proj isa String ? dirname(proj) : env

0 commit comments

Comments
 (0)