[Swift-commit] r4924 - SwiftApps/GOSwift/pykoa/tools

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Mon Aug 1 15:49:57 CDT 2011


Author: jonmon
Date: 2011-08-01 15:49:56 -0500 (Mon, 01 Aug 2011)
New Revision: 4924

Modified:
   SwiftApps/GOSwift/pykoa/tools/koa_goswift.py
Log:
o whitespace changes and added debug line to koa_goswift.py


Modified: SwiftApps/GOSwift/pykoa/tools/koa_goswift.py
===================================================================
--- SwiftApps/GOSwift/pykoa/tools/koa_goswift.py	2011-08-01 20:21:21 UTC (rev 4923)
+++ SwiftApps/GOSwift/pykoa/tools/koa_goswift.py	2011-08-01 20:49:56 UTC (rev 4924)
@@ -176,7 +176,7 @@
             url.update_relative_path()
         else:
             url = url_parse.TransferURL(arg)
-            
+
     src_url = None
     src_cred = None
     default_myproxy = None
@@ -234,7 +234,7 @@
 	if ep:
 	    check_explicit_activate([ep], options.myproxy_host)
 
-        cred_file = myproxy.contact_myproxy_server(options.myproxy_host, 
+        cred_file = myproxy.contact_myproxy_server(options.myproxy_host,
                                                    options.myproxy_user, options.myproxy_dn,
                                                    lifetime=options.myproxy_lifetime)
 
@@ -272,7 +272,7 @@
 
     # Execute the script
 #    cmd = os.path.join(os.environ["HOME"], "Swift_lib/swift-0.92/bin", "swift") # stable 0.92.1 release
-    cmd = os.path.join(os.environ["HOME"], "Swift_lib/bin", "swift")             # trunk release  
+    cmd = os.path.join(os.environ["HOME"], "Swift_lib/bin", "swift")             # trunk release
 
     os.chdir(work_directory)
     status = -1
@@ -360,14 +360,14 @@
             runs.append( int( run_num) )
         except ValueError:
             pykoa.debug( "Directory "+direc+" is not a run directory" )
-            
+
     runs.sort()
 
     # if the directories list is not empty, create the name of the run directory
     if runs:
         last_run = runs[ len(runs)-1 ] + 1
         run_directory = "run."+str(last_run)
-    
+
     work_directory = swift_dir+"/"+run_directory
     return (work_directory, last_run)
 
@@ -414,6 +414,7 @@
         pykoa.debug( "Created work_directory: " + work_directory )
     except os.error:
         sys.stderr.write( work_directory + " already exists, clean up " + os.getenv("HOME") + "/Swift" )
+        pykoa.debug( work_directory + " already exists" )
         return 1
 
     with open( work_directory+"/tc", "w" ) as tc_file:




More information about the Swift-commit mailing list