Skip to content

Potential issue of having absolute path for the 'about_file' from about.py #106

Description

@chinyeungli

The current tool will put an absolute path as the value of the 'about_file' when creating a BOM from about.py.
However, there may be a potential issue.
Assuming we have brunch of ABOUT files under /home/user/project/about/, once we generate the output CSV from the about.py, the 'about_file' field will be filled with absolute path of the ABOUT file such as /home/user/project/about/test.ABOUT

When the user want to generate the attribution by the genattrib.py from this BOM, the input path for genattrib.py need to be the root, '/', as to match with the 'about_file' value in the CSV. As a result, the tool will begin to search all the ABOUT files from the root which will cause a lot of time and resources on useless location.

My current solution to this is to modify the CSV and take out the '/home/user/project/' string in the 'about_file' field, and then in the input of the genattrib.py, put /home/user/project/, so that the tool will ONLY look at the ABOUT files under /home/user/project/ instead of the whole system.

@pombredanne what do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions