[Swift-commit] r7863 - SwiftApps/swift-galaxy/swift

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Mon May 12 14:10:34 CDT 2014


Author: ketan
Date: 2014-05-12 14:10:34 -0500 (Mon, 12 May 2014)
New Revision: 7863

Modified:
   SwiftApps/swift-galaxy/swift/swiftforeach.py
Log:
small fix

Modified: SwiftApps/swift-galaxy/swift/swiftforeach.py
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.py	2014-05-12 17:51:08 UTC (rev 7862)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.py	2014-05-12 19:10:34 UTC (rev 7863)
@@ -92,8 +92,8 @@
     wdir = setwdir().rstrip()
 
     #workout standard input file
-    if stdin:
-        #print "stdin"
+    if stdin != "None":
+        print stdin
         if k_or_t == "swiftK":
             #print "stdinK"
             stdinfilexpr = "file stdinfile<\""+stdin+"\">;\n"
@@ -133,8 +133,8 @@
         else:
 
             f.write("foreach i in ["+rstart+":"+rend+":"+stepsize+"]{\n")
-            f.write("    file out <single_file_mapper; file=@strcat("+outloc+", '/', i, '.out')>;\n")
-            f.write("    file err <single_file_mapper; file=@strcat('"+outloc+"', '/', i, '.err')>;\n")
+            f.write("    file out <single_file_mapper; file=@strcat(\""+outloc+"\", \"/\", i, \".out\")>;\n")
+            f.write("    file err <single_file_mapper; file=@strcat(\""+outloc+"\", \"/\", i, \".err\")>;\n")
         
         f.write("    (out,err) = anapp(exec, i, stringargs, fileargs, stdinfile);\n")
         f.write("}\n")




More information about the Swift-commit mailing list