Author: Tim Felgentreff <[email protected]>
Branch: rbitblt
Changeset: r568:d70d89b47bf9
Date: 2014-01-10 11:22 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/d70d89b47bf9/
Log: stupid me ... only replace slashes on windows
diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -191,7 +191,9 @@
if path is None:
path = "Squeak.image"
- path = os.path.join(os.getcwd(), path).replace("/", "\\")
+ path = os.path.join(os.getcwd(), path)
+ if os.name == "nt":
+ path = path.replace("/", "\\")
try:
f = open_file_as_stream(path, mode="rb", buffering=0)
except OSError as e:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit