Skip to content

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