Skip to content

Use os.path.join to concatenate paths #30

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

Merged

Conversation

orderthruchaos
Copy link
Contributor

While trying out the slideshow library for Adabox016, I noticed that the folder argument required a trailing slash in order to work properly (from the example code: folder="/images" would fail, folder="/images/" would succeed). Using os.path.join(folder, f) instead of folder + f fixes this issue.

@ladyada ladyada merged commit 0ac710c into adafruit:master Dec 20, 2020
@ladyada
Copy link
Member

ladyada commented Dec 20, 2020

nice!

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 21, 2020
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

Successfully merging this pull request may close these issues.

2 participants