Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad conversion to relative path #12

Open
Yaraslaut opened this issue Nov 10, 2023 · 0 comments
Open

Bad conversion to relative path #12

Yaraslaut opened this issue Nov 10, 2023 · 0 comments

Comments

@Yaraslaut
Copy link

If directories specified as multi line then string for directories will contain spaces in the begining, this leads to failure
example:

  dirs: ".,
         ./docs,
         ./scripts"

will lead to ./ ./docs using absolute path also does not help and docs will be converted into ./ docs

for directory in directories:
if directory != "." and not directory.startswith("./"):

Solution, add directory=directory.strip()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant