olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.16k stars 242 forks source link

--config option does not resolve "~" in path names #204

Closed ThomasHornschuh closed 6 years ago

ThomasHornschuh commented 6 years ago

I added a local fusesoc.conf file with the --config option to my fusesoc command line. This is the content of the file:

[main]
cores_root =~/development/bonfire
build_root = ~/development/Vivado/build/2017.4
cache_root = ~/.cache/fusesoc

fusesoc build did not resolve the ~ to my home directory, instead it created a directory under the cwd with the name "~" to add the build and .cache directories.

Maybe this is not supported, but I think I remember that the default config created upon installation contains at least for cache_root exactly the path above (I cannot check, I have no clean install anymore :-)

olofk commented 6 years ago

I would consider this a bug. ~ and environment variables needs to be explicitly expanded in Python and I have likely missed that in some places. Will fix that when I find the time. Thanks for reporting

olofk commented 6 years ago

This should be fixed now with 4d12e82 . Please close if this fixes the issue

ThomasHornschuh commented 6 years ago

Works...