Index: packagerChrome.py |
diff --git a/packagerChrome.py b/packagerChrome.py |
index bd103da5125b00d76bc740447fcfa8ca84d674f3..983f6115c49bc0047d3107f2f2ade59583c90f76 100644 |
--- a/packagerChrome.py |
+++ b/packagerChrome.py |
@@ -183,9 +183,11 @@ def convertJS(params, files): |
prefix = os.path.basename(os.path.dirname(input_filename)) |
if prefix != 'lib': |
module_name = '{}_{}'.format(prefix, module_name) |
- with open(os.path.join(base_dir, input_filename), 'r') as file: |
- modules.append((module_name, file.read().decode('utf-8'))) |
- files.pop(input_filename, None) |
+ if input_filename in files: |
+ modules.append((module_name, files.pop(input_filename))) |
+ else: |
+ with open(os.path.join(base_dir, input_filename), 'r') as file: |
+ modules.append((module_name, file.read().decode('utf-8'))) |
files[filename] = template.render( |
args=current_args, |