Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable startup.jl by default #377

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 docs/src/releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Release Notes

## Unreleased
* JuliaCall now supports `-X juliacall-startup-file=no` to disable running startup.jl.
* JuliaCall now supports `-X juliacall-startup-file=yes` to *enable* running startup.jl.
Previous versions enabled it by default like Julia does. When Julia is the main language,
i.e. PythonCall.jl used, Julia's default is still used, i.e. using the startup.jl file,
but that can be disabled with `julia --startup-file=no`.

## 0.9.14 (2023-07-26)
* Wrapped Julia values support truthiness (`__bool__`) better: all values are true, except
Expand Down
2 changes: 1 addition & 1 deletion pysrc/juliacall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def args_from_config():
CONFIG['opt_threads'] = int_option('threads', accept_auto=True)[0]
CONFIG['opt_warn_overwrite'] = choice('warn_overwrite', ['yes', 'no'])[0]
CONFIG['opt_handle_signals'] = choice('handle_signals', ['yes', 'no'], default='no')[0]
CONFIG['opt_startup_file'] = choice('startup_file', ['yes', 'no'])[0]
CONFIG['opt_startup_file'] = choice('startup_file', ['yes', 'no'], default='no')[0]

# Stop if we already initialised
if CONFIG['inited']:
Expand Down