@@ -26,7 +26,7 @@ def clear_screen(): # Function to clear the screen
2626 os .system ('CLS' ) # Clear the Screen
2727
2828def print_docs (): # Function to print the daily checks automatically
29- print "Printing Daily Check Sheets:"
29+ print ( "Printing Daily Check Sheets:" )
3030 # The command below passes the command line string to open word, open the document, print it then close word down
3131 subprocess .Popen (["C:\\ Program Files (x86)\Microsoft Office\Office14\winword.exe" , "P:\\ \\ Documentation\\ Daily Docs\\ Back office Daily Checks.doc" , "/mFilePrintDefault" , "/mFileExit" ]).communicate ()
3232
@@ -35,7 +35,7 @@ def putty_sessions(): # Function to load the putty sessions I need
3535 subprocess .Popen (('putty -load ' + server )) # Open the PuTTY sessions - 1.1
3636
3737def rdp_sessions ():
38- print "Loading RDP Sessions:"
38+ print ( "Loading RDP Sessions:" )
3939 subprocess .Popen ("mstsc eclr.rdp" ) # Open up a terminal session connection and load the euroclear session
4040
4141def euroclear_docs ():
@@ -53,7 +53,8 @@ def main():
5353 clear_screen () # Call the clear screen function
5454
5555 # The command below prints a little welcome message, as well as the script name, the date and time and where it was run from.
56- print "Good Morning " + os .getenv ('USERNAME' ) + ", " + filename , "ran at" , strftime ("%Y-%m-%d %H:%M:%S" ), "on" ,platform .node (), "run from" ,os .getcwd ()
56+ print ("Good Morning " + os .getenv ('USERNAME' ) + ", " +
57+ filename , "ran at" , strftime ("%Y-%m-%d %H:%M:%S" ), "on" ,platform .node (), "run from" ,os .getcwd ())
5758
5859 print_docs () # Call the print_docs function
5960 putty_sessions () # Call the putty_session function
0 commit comments