Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install ruff
- run: pip install 'ruff<0.13.0'
- run: ruff check beangulp/ examples/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ build/
\.aider.*
.python-version
uv.lock
.idea/
.vscode/

6 changes: 3 additions & 3 deletions beangulp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ def _archive(
# root where the import script is located. Providing this default
# seems better than using a required option.
if destination is None:
import __main__

destination = os.path.dirname(os.path.abspath(__main__.__file__))
# sys.argv[0] will be the main file path,
# even it's called with `python -m package.subpackage`
destination = os.path.dirname(os.path.abspath(sys.argv[0]))

verbosity = -quiet
log = utils.logger(verbosity, err=True)
Expand Down