Skip to content

Commit 8355820

Browse files
author
Christopher Doris
committed
juliacall startup-file option
1 parent e843891 commit 8355820

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: docs/src/juliacall.md

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ be configured in two ways:
119119
| `-X juliacall-min-optlevel=<0\|1\|2\|3>` | `PYTHON_JULIACALL_MIN_OPTLEVEL=<0\|1\|2\|3>` | Optimization level. |
120120
| `-X juliacall-optimize=<0\|1\|2\|3>` | `PYTHON_JULIACALL_OPTIMIZE=<0\|1\|2\|3>` | Minimum optimization level. |
121121
| `-X juliacall-procs=<N\|auto>` | `PYTHON_JULIACALL_PROCS=<N\|auto>` | Launch N local worker process. |
122+
| `-X juliacall-startup-file=<yes|no>` | `PYTHON_JULIACALL_STARTUP_FILE=<yes|no>` | Enable or disable your startup.jl file. |
122123
| `-X juliacall-sysimage=<file>` | `PYTHON_JULIACALL_SYSIMAGE=<file>` | Use the given system image. |
123124
| `-X juliacall-threads=<N\|auto>` | `PYTHON_JULIACALL_THREADS=<N\|auto>` | Launch N threads. |
124125
| `-X juliacall-warn-overwrite=<yes\|no>` | `PYTHON_JULIACALL_WARN_OVERWRITE=<yes\|no>` | Enable or disable method overwrite warnings. |

Diff for: docs/src/releasenotes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release Notes
22

3+
## Unreleased
4+
* JuliaCall now supports `-X juliacall-startup-file=no` to disable running startup.jl.
5+
36
## 0.9.14 (2023-07-26)
47
* Wrapped Julia values support truthiness (`__bool__`) better: all values are true, except
58
for zero numbers and empty arrays, dicts and sets.

Diff for: pysrc/juliacall/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def args_from_config():
130130
CONFIG['opt_threads'] = int_option('threads', accept_auto=True)[0]
131131
CONFIG['opt_warn_overwrite'] = choice('warn_overwrite', ['yes', 'no'])[0]
132132
CONFIG['opt_handle_signals'] = choice('handle_signals', ['yes', 'no'], default='no')[0]
133+
CONFIG['opt_startup_file'] = choice('startup_file', ['yes', 'no'])[0]
133134

134135
# Stop if we already initialised
135136
if CONFIG['inited']:

0 commit comments

Comments
 (0)