Do not enforce recompilation if .pyo's are up2date

This commit is contained in:
Oleksii Shevchuk 2017-03-11 11:54:03 +02:00
parent 4e6d1d3241
commit 19c06fe9e9
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def gen_package_pickled_dic(path, module_name):
module_dir = os.path.join(search_path, start_path)
if os.path.isdir(path):
compileall.compile_dir(os.path.relpath(module_dir), force=True, quiet=True)
compileall.compile_dir(os.path.relpath(module_dir), force=False, quiet=True)
for root, dirs, files in os.walk(module_dir):
to_embedd = set()
for f in files: