Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Fallback to __FILE__ when initializing global_prefix #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/BinaryProvider.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function __init__()
global global_prefix

# Initialize our global_prefix
global_prefix = Prefix(joinpath(dirname(pathof(@__MODULE__)), "..", "global_prefix"))
global_prefix = Prefix(joinpath(dirname(something(
pathof(@__MODULE__), # may be `nothing`; see JuliaLang/julia#31662
@__FILE__,
)), "..", "global_prefix"))

# Find the right download/compression engines for this platform
probe_platform_engines!()
Expand Down