gnuradio / pybombs

PyBOMBS (Python Build Overlay Managed Bundle System) is the GNU Radio install management system for resolving dependencies and pulling in out-of-tree projects.
https://gnuradio.org
GNU General Public License v3.0
416 stars 190 forks source link

prefix init will not create nested directories #528

Open dkozel opened 6 years ago

dkozel commented 6 years ago

In prefix init sysutils.mkdir_writable is used https://github.com/gnuradio/pybombs/blob/master/pybombs/commands/prefix.py#L266

rather than mkdirp_writable. https://github.com/gnuradio/pybombs/blob/master/pybombs/utils/sysutils.py#L77

The result is that pybombs prefix init ~/prefix/default/ will fail if ~/prefix does not already exist.

Which behavior is the better one?