LLNL / Surfactant

Modular framework for file information extraction and dependency analysis to generate accurate SBOMs
MIT License
20 stars 14 forks source link

Add option for using paths relative to Surfactant specimen config file #258

Open nightlark opened 2 weeks ago

nightlark commented 2 weeks ago

Add an option to Surfactant that allows the extractPaths and archive paths to be located relative to the specimen config file that was given to Surfactant -- this would make things a bit more portable across systems than specifying absolute paths and remove the need to run Surfactant from the exact same relative directory to the extractPaths/archive each time if relative paths were used

e.g. currently if a config file says the extractPaths is at "abc/123/", then Surfactant needs to be run from whatever folder contains the "abc" subfolder. This option would make so that as long as the config file is located in the same folder as the "abc" subfolder, then the correct subfolder will be found regardless of what directory the user runs Surfactant from.