Skip to content
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

Configure keys file path from environment variable #1

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

a1ex4
Copy link
Contributor

@a1ex4 a1ex4 commented Nov 3, 2023

This allows to externally configure NSTools to look for the keys file based on the environment variable NSTOOLS_KEYS_FILE, so the possible paths are not exclusively harcoded.

If the environment variable is not set, it will output or $NSTOOLS_KEYS_FILE not found, or its value if it is defined but not a file.

This also fix the ns_extract scripts, where the length argument is missing in the to_bytes calls. I don't know if the length can be hardcoded so the value is set according to SO.

@seiya-git
Copy link
Collaborator

seiya-git commented Nov 9, 2023

Hi! Thanks for PR.
Probably better to import Keys to main scripts for running load_default()
can you give me your discord or any other contact?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants