Skip to content

Commit 3753b17

Browse files
author
Christopher Doris
committed
update startup.jl instructions
1 parent 87f2a99 commit 3753b17

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,13 @@ file](https://docs.julialang.org/en/v1/manual/command-line-interface/#Startup-fi
329329
(`~/.julia/config/startup.jl`):
330330

331331
```julia
332-
Base.identify_package("CondaPkg") === nothing || Base.require(@__MODULE__, :CondaPkg)
332+
if isinteractive()
333+
try
334+
using CondaPkg
335+
catch
336+
@warn "CondaPkg not available"
337+
end
338+
end
333339
```
334340

335341
### Can I install a package from a URL or file?

0 commit comments

Comments
 (0)