Author: Tim Felgentreff <[email protected]>
Branch:
Changeset: r232:16ee8976d762
Date: 2013-03-22 13:24 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/16ee8976d762/
Log: fix translation on windows
diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -87,7 +87,7 @@
path = "Squeak.image"
try:
- f = open_file_as_stream(path)
+ f = open_file_as_stream(path, buffering=0)
except OSError as e:
os.write(2, "%s -- %s (LoadError)\n" % (os.strerror(e.errno), path))
return 1
@@ -98,7 +98,7 @@
image_reader = squeakimage.reader_for_image(space,
squeakimage.Stream(data=imagedata))
image = create_image(space, image_reader)
- interp = interpreter.Interpreter(space, image,
image_name=os.path.abspath(path))
+ interp = interpreter.Interpreter(space, image, image_name=path)
if benchmark is not None:
return _run_benchmark(interp, number, benchmark)
else:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit