Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wippersnapper preprocessor script for printing the library versions to boot outtxt #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: ci-wippersnapper
Choose a base branch
Loading
from
Prev Previous commit
Next Next commit
Raise ValueError if missing header file argument
  • Loading branch information
tyeth committed Oct 21, 2024
commit 86202a3916989ec5844570cc059318d92acca028
7 changes: 4 additions & 3 deletions 7 build_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
PRINT_DEPENDENCIES_AS_HEADER_FILENAME = None
if "--include_print_dependencies_header" in sys.argv:
# check argument not null and folder path exists
PRINT_DEPENDENCIES_AS_HEADER_FILENAME = sys.argv[sys.argv.index("--include_print_dependencies_header") + 1] if len(sys.argv) > sys.argv.index("--include_print_dependencies_header") + 1 else None
header_index = sys.argv.index("--include_print_dependencies_header") + 1
PRINT_DEPENDENCIES_AS_HEADER_FILENAME = sys.argv[header_index] if len(sys.argv) > header_index else None
if PRINT_DEPENDENCIES_AS_HEADER_FILENAME is None or not os.path.exists(PRINT_DEPENDENCIES_AS_HEADER_FILENAME):
raise AttributeError("Header file path not found or not provided to --include_print_dependencies_header argument")
raise ValueError("Header file path not found or not provided to --include_print_dependencies_header argument")
INCLUDE_PRINT_DEPENDENCIES_HEADER = True
sys.argv.pop(sys.argv.index("--include_print_dependencies_header") + 1)
sys.argv.pop(header_index)
sys.argv.remove("--include_print_dependencies_header")

# add user bin to path!
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.