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

Sort also the directory name for proper ordering between css and js plugin folders #1185

Merged
merged 3 commits into from
May 15, 2020

Conversation

nikalexis
Copy link
Contributor

This a small fix.
I have sorted the os.walk function to achieve ordering in directories naming.
Many times you need to include plugins in the assets folders (e.g. 10_jquery/..., 20_bootstrap/...), but some plugins depends on others, so you need a way to load then first.
Until now, sorting is only available for filenames in each folder, which cannot cover the above case.
The workaround would be to have all files in one folder, but this will disable the ability to structure properly your assets folder.

@alexcjohnson
Copy link
Collaborator

Seems reasonable to me, thanks! Just needs a CHANGELOG entry and it's ready to go.

@alexcjohnson alexcjohnson merged commit 066e571 into plotly:dev May 15, 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