Skip to content

Added rules to discover .sass files when compiling directories #78

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
merged 3 commits into from Jul 8, 2015
Merged

Added rules to discover .sass files when compiling directories #78

merged 3 commits into from Jul 8, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jul 7, 2015

When compiling using sass.compile(dirname=(source_dir, output_dir)), .sass files where not detected. With this small commit .sass files are now found and everything seems to work nicely.

@@ -150,13 +150,14 @@ def compile_dirname(
for dirpath, _, filenames in os.walk(search_path):
filenames = [
filename for filename in filenames
if filename.endswith('.scss') and not filename.startswith('_')
if (filename.endswith('.scss') or filename.endswith('.sass'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be shorten as filename.endswith(('.scss', '.sass')).

@dahlia
Copy link
Member

dahlia commented Jul 8, 2015

Thanks for your contribution! Could you adjust what I reviewed?

@ghost
Copy link
Author

ghost commented Jul 8, 2015

Done ! Thanks for the lib, the review and the endswith() trick

dahlia added a commit that referenced this pull request Jul 8, 2015
Added rules to discover `.sass` files when compiling directories
@dahlia dahlia merged commit 18699d6 into sass:python Jul 8, 2015
@dahlia
Copy link
Member

dahlia commented Jul 8, 2015

Merged. Thanks!

@ghost ghost deleted the sass_quickfix branch July 20, 2015 09:45
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.

1 participant