Skip to content

Commit a67dbf6

Browse files
committed
Fix install_controlplots
1 parent 6a22d8e commit a67dbf6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

bin/install_controlplots

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
5858
cd "${REPO_ROOT}"
5959

6060
CONTROLPLOTS_PROJECT="examples_cp"
61+
TEST_PROJECT="test"
6162

6263
# ── Interactive backend selection ─────────────────────────────────────────────
6364

@@ -290,11 +291,10 @@ if [[ "$_backend" == "system" ]]; then
290291

291292
echo ""
292293
echo "Saving python_exe=$_syspython to LocalPreferences.toml files..."
293-
# Write to both the root project and examples_cp project, because
294-
# `julia --project=examples_cp` reads examples_cp/LocalPreferences.toml,
295-
# not the root one.
294+
# Write to the root project plus the subprojects that load PythonCall.
296295
_write_system_python_prefs "LocalPreferences.toml"
297296
_write_system_python_prefs "${CONTROLPLOTS_PROJECT}/LocalPreferences.toml"
297+
_write_system_python_prefs "${TEST_PROJECT}/LocalPreferences.toml"
298298

299299
_set_mplbackend_qtagg
300300
_verify_controlplots
@@ -328,6 +328,7 @@ elif [[ "$_backend" == "conda" ]]; then
328328
}
329329
_remove_python_prefs "LocalPreferences.toml"
330330
_remove_python_prefs "${CONTROLPLOTS_PROJECT}/LocalPreferences.toml"
331+
_remove_python_prefs "${TEST_PROJECT}/LocalPreferences.toml"
331332

332333
_install_matplotlib_condapkg
333334

0 commit comments

Comments
 (0)