[pypy-svn] r4915 - pypy/trunk/src/pypy/translator/tool

ale at codespeak.net ale at codespeak.net
Fri Jun 4 17:12:39 CEST 2004


Author: ale
Date: Fri Jun  4 17:12:39 2004
New Revision: 4915

Modified:
   pypy/trunk/src/pypy/translator/tool/make_dot.py
Log:
Change to enable binary file support for windows (works only for PNG files)

Modified: pypy/trunk/src/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/make_dot.py	(original)
+++ pypy/trunk/src/pypy/translator/tool/make_dot.py	Fri Jun  4 17:12:39 2004
@@ -159,8 +159,10 @@
     #print source
     dest.write(source)
     psdest = dest.new(ext=target)
-    out = cmdexec('dot -T%s %s' % (target, str(dest)))
-    psdest.write(out)
+    out = cmdexec('dot -T%s %s>%s' % (target, str(dest),str(psdest)))
+## This is the old code, which doesnt work on binary files on windows    
+##    out = cmdexec('dot -T%s %s' % (target, str(dest)))
+##    psdest.write(out)
     #print "wrote", psdest
     return psdest
 



More information about the Pypy-commit mailing list