Skip to content

Commit

Permalink
Update environment.py
Browse files Browse the repository at this point in the history
Address CycloneDX#804 by doubling % chars that are meant to be output.

Signed-off-by: Steve (Gadget) Barnes <gadgetsteve@hotmail.com>
  • Loading branch information
GadgetSteve authored Sep 30, 2024
1 parent 01c1354 commit 41ecd3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cyclonedx_py/_internal/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,23 @@ def make_argument_parser(**kwargs: Any) -> 'ArgumentParser':
> %(prog)s "...\\some\\path\\bin\\python.exe"
> %(prog)s "...\\some\\path\\.venv"
> %(prog)s "$env:VIRTUAL_ENV"
> %(prog)s %VIRTUAL_ENV%
> %(prog)s %%VIRTUAL_ENV%%
• Build an SBOM from specific Python environment:
> where.exe python3.9.exe
> %(prog)s "%path-to-specific-python%"
> %(prog)s "%%path-to-specific-python%%"
• Build an SBOM from conda Python environment:
> conda.exe run where.exe python
> %(prog)s "%path-to-conda-python%"
> %(prog)s "%%path-to-conda-python%%"
• Build an SBOM from Pipenv environment:
> pipenv.exe --py
> pipenv.exe --venv
> %(prog)s "%path-to-pipenv-python%"
> %(prog)s "%%path-to-pipenv-python%%"
• Build an SBOM from Poetry environment:
> poetry.exe env info --executable
> %(prog)s "%path-to-poetry-python%"
> %(prog)s "%%path-to-poetry-python%%"
• Build an SBOM from PDM environment:
> pdm.exe info --python
> %(prog)s "%path-to-pdm-python%"
> %(prog)s "%%path-to-pdm-python%%"
""")
else: # if os_name == 'posix':
p.epilog = dedent("""\
Expand Down

0 comments on commit 41ecd3d

Please sign in to comment.