aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-19 17:10:36 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-19 17:10:36 -0700
commit2a6749efe217c907931ed9b675e163219eaae377 (patch)
tree6654048d42349d1f2728c184fb62592e627d07a3 /emcc
parentf9ef501d57001cce03abe7ed24dcd57e1c421888 (diff)
fix test_emcc_multifile
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/emcc b/emcc
index 398d5825..69dd999e 100755
--- a/emcc
+++ b/emcc
@@ -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: