[PR #109] [MERGED] Switched to a __main__.py file #144

Closed
opened 2026-02-26 01:33:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jeffknupp/sandman2/pull/109
Author: @Carelvd
Created: 7/3/2019
Status: Merged
Merged: 7/27/2019
Merged by: @jeffknupp

Base: masterHead: master


📝 Commits (1)

  • 9b35afd Switched to a main.py file

📊 Changes

3 files changed (+2 additions, -2 deletions)

View changed files

📝 sandman2/__main__.py (+0 -0)
sandman2/scripts/__init__.py (+0 -0)
📝 setup.py (+2 -2)

📄 Description

Moved the script under sandman2.script.sandmanctl to a __main__.py file in the package root making the package directly executable via Python while maintaining the entry point. One may then invoke sandman2 through two means :

sandman2ctl ...

or :

python -m sandman2 ...

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jeffknupp/sandman2/pull/109 **Author:** [@Carelvd](https://github.com/Carelvd) **Created:** 7/3/2019 **Status:** ✅ Merged **Merged:** 7/27/2019 **Merged by:** [@jeffknupp](https://github.com/jeffknupp) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`9b35afd`](https://github.com/jeffknupp/sandman2/commit/9b35afd5b6fcc5cedcab30122fec3b645d6b80ea) Switched to a __main__.py file ### 📊 Changes **3 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `sandman2/__main__.py` (+0 -0) ➖ `sandman2/scripts/__init__.py` (+0 -0) 📝 `setup.py` (+2 -2) </details> ### 📄 Description Moved the script under `sandman2.script.sandmanctl` to a `__main__.py` file in the package root making the package directly executable via Python while maintaining the entry point. One may then invoke sandman2 through two means : sandman2ctl ... or : python -m sandman2 ... --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 01:33:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#144
No description provided.