Skip to content

Commit 63d1182

Browse files
author
blankser
committed
Use the file in the project to check if file is outdated, and compile this file.
This will allow to set PIPELINE_COLLECTOR_ENABLED to False and still pick up changes.
1 parent 3cd2f93 commit 63d1182

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pipeline/compilers/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ def _compile(input_path):
3636
infile = self.storage.path(input_path)
3737
except NotImplementedError:
3838
infile = finders.find(input_path)
39+
project_infile = finders.find(input_path)
3940
outfile = compiler.output_path(infile, compiler.output_extension)
40-
outdated = compiler.is_outdated(infile, outfile)
41-
compiler.compile_file(infile, outfile,
41+
outdated = compiler.is_outdated(project_infile, outfile)
42+
compiler.compile_file(project_infile, outfile,
4243
outdated=outdated, force=force,
4344
**compiler_options)
4445

0 commit comments

Comments
 (0)