Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image builder: Accept ~ and ~user on command line
When using the following command syntax: rfnoc_image_builder --fpga-dir=~/path/to/uhd/fpga \ --yaml-config=~/path/to/image_core.yml The shell won't expand the ~ (shorthand for $HOME) and the image builder needs to expand the path itself, which is fixed in this commit (for --fpga-dir, --yaml-config, and --grc-config). Note that this is not a problem when skipping the "=", i.e., the following work without this fix, assuming a shell that auto-expands the tilde symbol (e.g., bash, zsh): rfnoc_image_builder --fpga-dir ~/path/to/uhd/fpga \ --yaml-config ~/path/to/image_core.yml or rfnoc_image_builder -F ~/path/to/uhd/fpga \ -y ~/path/to/image_core.yml
- Loading branch information