fix bug : not generate all files when use "-ro"

when use the args of "-ro  outdir inputdir", only the first file is generated, other files is covered.
This commit is contained in:
jlugjb
2017-01-11 17:02:36 +08:00
committed by GitHub
parent a760188724
commit e851c0d46a

View File

@@ -143,6 +143,7 @@ def main(in_base, out_base, files, codes, outfile=None,
# Try to uncompile the input file
try:
decompile_file(infile, outstream, showasm, showast, showgrammar)
outfile = None
tot_files += 1
except (ValueError, SyntaxError, ParserError, pysource.SourceWalkerError) as e:
sys.stdout.write("\n")