On Thu, Jan 12, 2012 at 3:21 PM, Michael Yang <[email protected]> wrote:
> Could anyone tell me what git commands to run to get a working version of
> 0.8a1 on Mac OS X?  Whichever one is listed on SF is
> causing http://code.google.com/p/pyjamas/issues/detail?id=677

michael,

please could you check which one of these edits (or both) is required?

i believe the 1st should be left alone but the 2nd may not - please
double-check.

 thanks.


index a8eec0f..4a7b004 100644
--- a/pyjs/src/pyjs/linker.py
+++ b/pyjs/src/pyjs/linker.py
@@ -129,7 +129,7 @@ def out_translate(platform, file_names, out_file, module_nam
             opts.append(out_file.replace(" ", r"\ "))
             shell=True
         opts += get_translator_opts(translator_args) + file_names
-        opts = [pyjs.PYTHON] + [os.path.join(pydir, translate_cmd)] + translate
+        opts = [pyjs.PYTHON] + [translate_cmd] + translate_cmd_opts + opts
         pyjscompile_cmd = '"%s"' % '" "'.join(opts)
         #print pyjscompile_cmd - use this to create Makefile code-fragment
         proc = subprocess.Popen(pyjscompile_cmd,
@@ -137,7 +137,7 @@ def out_translate(platform, file_names, out_file, module_nam
                            stdout=subprocess.PIPE,
                            stderr=subprocess.PIPE,
                            shell=shell,
-                           cwd=os.path.dirname(file_names[0]),
+                           cwd=pydir,
                            env=os.environ
                            )
         stdout_value, stderr_value = proc.communicate('')
lkcl@teenymac:~/pyjamas$

Reply via email to