diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 17:10:36 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 17:10:36 -0700 |
commit | 2a6749efe217c907931ed9b675e163219eaae377 (patch) | |
tree | 6654048d42349d1f2728c184fb62592e627d07a3 /emcc | |
parent | f9ef501d57001cce03abe7ed24dcd57e1c421888 (diff) |
fix test_emcc_multifile
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -810,14 +810,14 @@ try: code = '' # Expand directories into individual files - def add(filename, dirname, names, mode): + def add(mode, dirname, names): for name in names: combined = os.path.join(dirname, name) - data_files.append({ 'name': newargs[i+1], 'mode': mode }) + data_files.append({ 'name': os.path.join(dirname, name), 'mode': mode }) for file_ in data_files: if os.path.isdir(file_['name']): - os.path.walk(file_['name'], add, file_['name'], ) + os.path.walk(file_['name'], add, file_['mode']) data_files = filter(lambda file_: not os.path.isdir(file_['name']), data_files) for file_ in data_files: |