Skip to content

Commit 1167270

Browse files
author
Release Manager
committed
gh-41025: set full path to sage-num-threads.py in sage-env fixes #40889 Apparently we no longer put SAGE_ROOT/src/bin/ in PATH <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #41025 Reported by: Dima Pasechnik Reviewer(s): Max Alekseyev, user202729
2 parents 192f833 + 0e5602b commit 1167270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/sage-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ case "$SAGE_NUM_THREADS,$SAGE_NUM_THREADS_PARALLEL" in
580580
# First, figure out the right values for SAGE_NUM_THREADS (default
581581
# number of threads) and SAGE_NUM_THREADS_PARALLEL (default number of
582582
# threads when parallel execution is asked explicitly).
583-
sage_num_threads_array=$(sage-num-threads.py 2>/dev/null || echo 1 2 1)
583+
sage_num_threads_array=$("$(dirname "$0")"/sage-num-threads.py 2>/dev/null || echo 1 2 1)
584584
sage_num_threads_array="${sage_num_threads_array% *}" # strip third item
585585
SAGE_NUM_THREADS="${sage_num_threads_array% *}" # keep first item
586586
SAGE_NUM_THREADS_PARALLEL="${sage_num_threads_array#* }" # keep second item

0 commit comments

Comments
 (0)