Commit 5fe50cd6 by Timothée Peignier

Merge pull request #126 from Nivl/master

fix an IOError
parents 672fd613 c1ff4867
...@@ -30,6 +30,10 @@ class Compiler(object): ...@@ -30,6 +30,10 @@ class Compiler(object):
try: try:
infile = finders.find(input_path) infile = finders.find(input_path)
outfile = finders.find(output_path) outfile = finders.find(output_path)
if outfile is None:
outfile = self.output_path(infile, compiler.output_extension)
outdated = False
else:
outdated = self.is_outdated(input_path, output_path) outdated = self.is_outdated(input_path, output_path)
compiler.compile_file(infile, outfile, outdated=outdated, force=force) compiler.compile_file(infile, outfile, outdated=outdated, force=force)
except CompilerError: except CompilerError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment