Skip to content

Commit

Permalink
make entry points callable as python modules
Browse files Browse the repository at this point in the history
such that `python -m toast.scripts.toast_ground_schedule -h` would work
or we could do
```py
from toast.scripts.toast_ground_schedule import main
main(...)
```
  • Loading branch information
ickc committed Jul 21, 2023
1 parent 51f708a commit 3a991dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/toast/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set(ENTRY_POINTS
foreach(pyscript ${ENTRY_POINTS})
string(REPLACE ".py" "" outscript "${pyscript}")
install(PROGRAMS "${pyscript}" DESTINATION bin RENAME "${outscript}")
install(FILES "${pyscript}" DESTINATION ${PYTHON_SITE}/toast/scripts)
endforeach()

install(FILES
Expand Down

0 comments on commit 3a991dc

Please sign in to comment.