aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-04 12:50:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-04 12:50:37 -0700
commit1efbaae03148633014f6d62ed2b3132c5ec5d6c0 (patch)
treeff2ab024afc0249d077db6e3b10db9269895a42a /tools/shared.py
parent6335ad37c27d21780e3b4c25698db1282415a4d0 (diff)
pass the eliminator the filename to avoid OS-specific issues with reading from stdin using node
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index e0ed3707..0d99a22d 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -850,7 +850,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e
coffee = path_from_root('tools', 'eliminator', 'node_modules', 'coffee-script', 'bin', 'coffee')
eliminator = path_from_root('tools', 'eliminator', 'eliminator.coffee')
input = open(filename, 'r').read()
- output = Popen([NODE_JS, coffee, eliminator], stdin=PIPE, stdout=PIPE).communicate(input)[0]
+ output = Popen([NODE_JS, coffee, eliminator, filename], stdout=PIPE).communicate()[0]
assert len(output) > 0, 'Error in eliminator: ' + output
filename += '.el.js'
f = open(filename, 'w')