-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: enable users to specify a custom ghidrathon.save path via an en…
…vironment variable (#99) * Allow users to set a custom ghidrathon.save path via env variable * Add GHIDRATHON_SAVE_PATH documentation to README.md * Log ghidrathon.save path in debug mode * Add support for GHIDRATHON_SAVE_PATH in Ghidrathon extension * Add tests for GHIDRATHON_SAVE_PATH support * Add GHIDRATHON_SAVE_PATH documentation to README.md Co-authored-by: Mike Hunhoff <[email protected]> * Add tests for GHIDRATHON_SAVE_PATH support * Minor fixes on tests.yml * Add documentation for -overwrite flag * Rename GHIDRATHON_SAVE_PATH variable to GHIDRATHON_SAVE_PATH_DEFAULT * Disallow empty string for GHIDRATHON_SAVE_PATH * Check validity of GHIDRATHON_SAVE_PATH directory * Undo renaming of GHIDRATHON_SAVE_PATH * Disallow empty string for GHIDRATHON_SAVE_PATH To make sure that Ghidrathon plugin aligns with configure_ghidrathon.py we need to make sure that the GHIDRATHON_SAVE_PATH is never set to "". * Fix logic of GHIDRATHON_SAVE_PATH value The following commit fixes incorrect login in the previous commit. Please refer to the explination below: if GHIDRATHON_SAVE_PATH is set to any value (other than None or ""), check if it exists and is a directory. elif GHIDRATHON_SAVE_PATH is an empty string, report an invalid directory to avoid confusion. else GHIDRATHON_SAVE_PATH is not, use default install path. * Fix linting * Add debug output indicating save file location Added log messages to indicate whether the file path was read from the environment variable or the default path was used. * minor fix: indent comments properly in tests.yml --------- Co-authored-by: Mike Hunhoff <[email protected]>
- Loading branch information
1 parent
6183fa9
commit a3deefd
Showing
4 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters