anthonyharrison / distro2SBOM

Generates SBOM files from system packaging information
Apache License 2.0
10 stars 7 forks source link

setup.py seems to assume repo root #3

Open patrick-stephens opened 1 year ago

patrick-stephens commented 1 year ago

You cannot seem to run from another path e.g python /test/setup.py, it look for README.md, etc. locally rather than at the location of the .py file.

anthonyharrison commented 1 year ago

@patrick-stephens The behaviour is correct - the layout of the repo follows the standard Python packageing structure.

patrick-stephens commented 1 year ago

Sorry if it wasn't clear, I assumed you could run the script from a relative path and it would pick up the correct directory. If you run it, then it assumes the local directory is the repo root rather than where the script is located.

The structure is correct but it makes an assumption about the current directory. If it grabbed the realpath or similar of the script file location it would work.