@@ -26,7 +26,7 @@ def clear_screen(): # Function to clear the screen
26
26
os .system ('CLS' ) # Clear the Screen
27
27
28
28
def print_docs (): # Function to print the daily checks automatically
29
- print "Printing Daily Check Sheets:"
29
+ print ( "Printing Daily Check Sheets:" )
30
30
# The command below passes the command line string to open word, open the document, print it then close word down
31
31
subprocess .Popen (["C:\\ Program Files (x86)\Microsoft Office\Office14\winword.exe" , "P:\\ \\ Documentation\\ Daily Docs\\ Back office Daily Checks.doc" , "/mFilePrintDefault" , "/mFileExit" ]).communicate ()
32
32
@@ -35,7 +35,7 @@ def putty_sessions(): # Function to load the putty sessions I need
35
35
subprocess .Popen (('putty -load ' + server )) # Open the PuTTY sessions - 1.1
36
36
37
37
def rdp_sessions ():
38
- print "Loading RDP Sessions:"
38
+ print ( "Loading RDP Sessions:" )
39
39
subprocess .Popen ("mstsc eclr.rdp" ) # Open up a terminal session connection and load the euroclear session
40
40
41
41
def euroclear_docs ():
@@ -53,7 +53,8 @@ def main():
53
53
clear_screen () # Call the clear screen function
54
54
55
55
# 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 ())
57
58
58
59
print_docs () # Call the print_docs function
59
60
putty_sessions () # Call the putty_session function
0 commit comments