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

Set cwd as an attribute of CompilerFilter. #1058

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion compressor/filters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ class CompilerFilter(FilterBase):
settings.FILE_CHARSET if settings.is_overridden('FILE_CHARSET') else
'utf-8'
)
cwd = None

def __init__(self, content, command=None, **kwargs):
super().__init__(content, **kwargs)
self.cwd = None

if command:
self.command = command
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ v3.0 (2021-??-??)
- Fix various deprecation warnings
- Add ability to pass a logger to various classes & methods
- Removed deprecated ``COMPRESS_JS_FILTERS`` and ``COMPRESS_CSS_FILTERS`` settings
- In class CompilerFilter set cwd as an attribute so that it's easier to override in child classes.

v2.4.1 (2021-04-17)
-----------------
Expand Down