Skip to content

Commit 8827e83

Browse files
committed
up
1 parent 83dfb5d commit 8827e83

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Configure the desired Python version and dependencies in your
118118
```elixir
119119
import Config
120120

121-
config :pythonx, :uv,
121+
config :pythonx, :uv_init,
122122
pyproject_toml: """
123123
[project]
124124
name = "project"

lib/pythonx/application.ex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ defmodule Pythonx.Application do
1818
end
1919
end
2020

21-
# If configured, Python and dependencies are fetched at compile time,
22-
# so we automatically initialize the interpreter on boot.
23-
#
24-
# TODO: My suggestion would be to call ut :pythonx, :uv_init, to make
25-
# it clear it will start the runtime.
26-
if pyproject_toml = Application.compile_env(:pythonx, :uv)[:pyproject_toml] do
21+
# If configured, we fetch Python and dependencies at compile time
22+
# and we automatically initialize the interpreter on boot.
23+
if pyproject_toml = Application.compile_env(:pythonx, :uv_init)[:pyproject_toml] do
2724
Pythonx.Uv.fetch(pyproject_toml, true)
2825
defp maybe_uv_init(), do: Pythonx.Uv.init(unquote(pyproject_toml), true)
2926
else

0 commit comments

Comments
 (0)